Packages

c

slick.lifted

AnyOptionExtensionMethods

final class AnyOptionExtensionMethods[O <: Rep[_], P] extends AnyVal

Extension methods for Options of single- and multi-column values

Source
ExtensionMethods.scala
Linear Supertypes
AnyVal, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnyOptionExtensionMethods
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AnyOptionExtensionMethods(r: O)

Value Members

  1. def filter[T](p: (P) => T)(implicit wt: CanBeQueryCondition[T]): O

    Return this Option if it is non-empty and applying the predicate p to this Option's value returns true.

    Return this Option if it is non-empty and applying the predicate p to this Option's value returns true. Otherwise, return None.

  2. def flatMap[QO](f: (P) => Rep[Option[QO]]): Rep[Option[QO]]

    Return the result of applying f to this Option's value if this Option is non-empty, otherwise None.

  3. def flatten[QO](implicit ev: <:<[P, Rep[Option[QO]]]): Rep[Option[QO]]

    Flatten a nested Option.

  4. def fold[B, BP](ifEmpty: B)(f: (P) => B)(implicit shape: Shape[FlatShapeLevel, B, _, BP]): BP

    Apply f to the value inside this Option, if it is non-empty, otherwise return ifEmpty.

  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. def getOrElse[M, P2 <: P](default: M)(implicit shape: Shape[FlatShapeLevel, M, _, P2], ol: OptionLift[P2, O]): P

    Get the value inside this Option, if it is non-empty, otherwise the supplied default.

  7. def isDefined: Rep[Boolean]

    Check if this Option is non-empty.

  8. def isEmpty: Rep[Boolean]

    Check if this Option is empty.

  9. def map[Q, QO](f: (P) => Q)(implicit ol: OptionLift[Q, Rep[Option[QO]]]): Rep[Option[QO]]

    Transform the value inside this Option

  10. def nonEmpty: Rep[Boolean]

    Check if this Option is non-empty.

  11. val r: O