final class AnyOptionExtensionMethods[O <: Rep[_], P] extends AnyVal
Extension methods for Options of single- and multi-column values
- Source
- ExtensionMethods.scala
- Alphabetic
- By Inheritance
- AnyOptionExtensionMethods
- AnyVal
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AnyOptionExtensionMethods(r: O)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def ->[B](y: B): (AnyOptionExtensionMethods[O, P], B)
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toArrowAssoc[AnyOptionExtensionMethods[O, P]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (AnyOptionExtensionMethods[O, P]) => Boolean, msg: => Any): AnyOptionExtensionMethods[O, P]
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toEnsuring[AnyOptionExtensionMethods[O, P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (AnyOptionExtensionMethods[O, P]) => Boolean): AnyOptionExtensionMethods[O, P]
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toEnsuring[AnyOptionExtensionMethods[O, P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): AnyOptionExtensionMethods[O, P]
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toEnsuring[AnyOptionExtensionMethods[O, P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): AnyOptionExtensionMethods[O, P]
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toEnsuring[AnyOptionExtensionMethods[O, P]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- 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.
- 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. - def flatten[QO](implicit ev: <:<[P, Rep[Option[QO]]]): Rep[Option[QO]]
Flatten a nested Option.
- 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 returnifEmpty
. - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- 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.
- def isDefined: Rep[Boolean]
Check if this Option is non-empty.
- def isEmpty: Rep[Boolean]
Check if this Option is empty.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[Q, QO](f: (P) => Q)(implicit ol: OptionLift[Q, Rep[Option[QO]]]): Rep[Option[QO]]
Transform the value inside this Option
- def nonEmpty: Rep[Boolean]
Check if this Option is non-empty.
- val r: O
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toStringFormat[AnyOptionExtensionMethods[O, P]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (AnyOptionExtensionMethods[O, P], B)
- Implicit
- This member is added by an implicit conversion from AnyOptionExtensionMethods[O, P] toArrowAssoc[AnyOptionExtensionMethods[O, P]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...