implicit final class OptionOps[A] extends AnyVal
- Alphabetic
- By Inheritance
- OptionOps
- AnyVal
- Any
- by AnyOps
- by AnyOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (OptionOps[A], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (OptionOps[A]) ⇒ Boolean, msg: ⇒ Any): OptionOps[A]
- def ensuring(cond: (OptionOps[A]) ⇒ Boolean): OptionOps[A]
- def ensuring(cond: Boolean, msg: ⇒ Any): OptionOps[A]
- def ensuring(cond: Boolean): OptionOps[A]
-
def
forNone(f: ⇒ Unit): Unit
Executes side-effectful procedure
fif value is empty, do nothing otherwise.Executes side-effectful procedure
fif value is empty, do nothing otherwise.- f
the side-effectful procedure to execute
- Annotations
- @inline()
- def formatted(fmtstr: String): String
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
orEmpty(implicit ev: DefaultValue[A]): A
Returns the option's value if nonempty, otherwise return a default "empty" value.
Returns the option's value if nonempty, otherwise return a default "empty" value.
- returns
the option's value if nonempty, a default empty value otherwise
-
def
toString(): String
- Definition Classes
- Any
- def →[B](y: B): (OptionOps[A], B)
Shadowed Implicit Value Members
-
def
future: Future[OptionOps[A]]
Creates an already completed
Futurecontainingvalue.Creates an already completed
Futurecontainingvalue.- returns
the already completed
Futurewith the specified result
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).future
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
future: Future[OptionOps[A]]
Creates an already completed
Futurecontainingvalue.Creates an already completed
Futurecontainingvalue.- returns
the already completed
Futurewith the specified result
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).future
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
option: Option[OptionOps[A]]
Creates an
Optioncontainingvalue.Creates an
Optioncontainingvalue.- returns
Some(value)ifvalueis notnull,Noneotherwise
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).option
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
option: Option[OptionOps[A]]
Creates an
Optioncontainingvalue.Creates an
Optioncontainingvalue.- returns
Some(value)ifvalueis notnull,Noneotherwise
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).option
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
tap(f: (OptionOps[A]) ⇒ Unit): OptionOps[A]
Applies side-effectul method to
value, returningvalue.Applies side-effectul method to
value, returningvalue.- f
the side-effectful method to apply to
value- returns
value
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).tap(f)
- Definition Classes
- AnyOps
-
def
tap(f: (OptionOps[A]) ⇒ Unit): OptionOps[A]
Applies side-effectul method to
value, returningvalue.Applies side-effectul method to
value, returningvalue.- f
the side-effectful method to apply to
value- returns
value
- Implicit
- This member is added by an implicit conversion from OptionOps[A] to AnyOps[OptionOps[A]] performed by method AnyOps in scail.commons.ops.
- Shadowing
- This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
To access this member you can use a type ascription:(optionOps: AnyOps[OptionOps[A]]).tap(f)
- Definition Classes
- AnyOps