All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.morgaroth.utils.option.ObjectToOptionConverter.scala Maven / Gradle / Ivy

package pl.morgaroth.utils.option

object ObjectToOptionConverter {

  import scala.language.implicitConversions

  implicit def convertToOption[A](obj: A) = obj match {
    case null => None
    case e => Some(e)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy