OptionImplicits

com.sksamuel.elastic4s.ext.OptionImplicits$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

implicit class RichOption[T](option: Option[T])

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class RichOptionImplicits[T](t: T)

Better than Some(t) because that will return the inferred type as Some[T], but in a fold we probably want the type inferred as Option[T]

Better than Some(t) because that will return the inferred type as Some[T], but in a fold we probably want the type inferred as Option[T]

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class RichStringOptionImplicits(str: String)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def none[T]: Option[T]

Implicits

Implicits

final implicit def RichOption[T](option: Option[T]): RichOption[T]
final implicit def RichOptionImplicits[T](t: T): RichOptionImplicits[T]

Better than Some(t) because that will return the inferred type as Some[T], but in a fold we probably want the type inferred as Option[T]

Better than Some(t) because that will return the inferred type as Some[T], but in a fold we probably want the type inferred as Option[T]

Attributes

final implicit def RichStringOptionImplicits(str: String): RichStringOptionImplicits