implicit final class ConvenientOption[Content] extends AnyVal
This class extends the interface of Option with convenience methods.
- Alphabetic
- By Inheritance
- ConvenientOption
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConvenientOption(self: Option[Content])
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
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(format: (String) => String = identity, describeContent: (Content) => String = _.toString, describeNone: => String = "None"): Option[Content]
Prints out a report of the
Option’s contents (if any).Prints out a report of the
Option’s contents (if any). Returns the unmodifiedOption.- format
a function that takes in a description of an
Optionand produces a report of it; defaults toidentity- describeContent
a function that takes in an
Option’s contents and produces a description of it; defaults to_.toString- describeNone
a description of an empty
Option; defaults to"None"
- def tap(effect: (Content) => Unit): Option[Content]
Performs a given side effect on the
Option’s contents (if any).Performs a given side effect on the
Option’s contents (if any). Returns the unmodifiedOption. - def toString: String
- Definition Classes
- Any