final class OptionOps[A] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OptionOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new OptionOps(oa: Option[A])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
cata[B](some: (A) ⇒ B, none: ⇒ B): B
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
left[B](b: ⇒ B): Either[A, B]
Same as oa.toLeft except that it fixes the type to Either[A, B] On Scala prior to 2.12, toLeft returns
Serializable with Product with Either[A, B]
Same as oa.toLeft except that it fixes the type to Either[A, B] On Scala prior to 2.12, toLeft returns
Serializable with Product with Either[A, B]
- Annotations
- @inline()
- val oa: Option[A]
-
final
def
right[B](b: ⇒ B): Either[B, A]
Same as oa.toRight except that it fixes the type to Either[B, A] On Scala prior to 2.12, toRight returns
Serializable with Product with Either[B, A]
Same as oa.toRight except that it fixes the type to Either[B, A] On Scala prior to 2.12, toRight returns
Serializable with Product with Either[B, A]
- Annotations
- @inline()
-
def
toString(): String
- Definition Classes
- Any
- def toTry(ex: ⇒ Throwable): Try[A]
-
final
def
toTryMsg(msg: ⇒ String): Try[A]
- Annotations
- @inline()