implicit final class ExtraRichOption[A] extends AnyRef
- Alphabetic
- By Inheritance
- ExtraRichOption
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ExtraRichOption(opt: Option[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
invert[B](ifEmpty: ⇒ B): Option[B]
Returns an Option containing the specified value if this Option is empty, or an empty Option if this Option is defined.
Returns an Option containing the specified value if this Option is empty, or an empty Option if this Option is defined.
- B
the type of the returned Option
- ifEmpty
the value to use if this Option is empty
- returns
an Option containing the specified the specified value if this Option is empty, or an empty Option if this Option is defined
-
def
invertWith[B](ifEmpty: ⇒ Option[B]): Option[B]
Returns the specified Option if this Option is empty, or an empty Option if this Option is defined.
Returns the specified Option if this Option is empty, or an empty Option if this Option is defined.
- B
the type of the returned Option
- ifEmpty
the option to return if this Option is empty
- returns
the specified Option if this Option is empty, or an empty Option if this Option is defined
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toFuture: Future[A]
Returns a completed Future from this Option.
Returns a completed Future from this Option.
The Future returned:
- succeeds with the value of this Option if this Option is defined
- fails with a
NoSuchElementException
if this Option is empty
- returns
a completed Future from this Option
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transform[B](ifDefined: (A) ⇒ Option[B], ifEmpty: ⇒ Option[B]): Option[B]
Returns an Option by applying
ifDefined
to the value of this Option if this Option is defined, orifEmpty
if this Option is empty.Returns an Option by applying
ifDefined
to the value of this Option if this Option is defined, orifEmpty
if this Option is empty.- B
the type of the Option returned
- ifDefined
a function to apply to the value of this Option if it is defined
- ifEmpty
an Option to return if this Option is empty
- returns
an Option by applying
ifDefined
to the value of this Option if this Option is defined, orifEmpty
if this Option is empty
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )