final class Present[A] extends AnyVal
A wrapper class to allow any value to be used with for
- A
the type of the underlying value
- Alphabetic
- By Inheritance
- Present
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
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
flatMap[B](f: (A) ⇒ Present[B]): Present[B]
Builds a new
Present
by applying a function to underlying value of thisPresent
that returns typePresent[B]
.Builds a new
Present
by applying a function to underlying value of thisPresent
that returns typePresent[B]
.- f
the function that takes type
A
and returns a typePresent[B]
- returns
a
Present
ofB
-
def
foreach(f: (A) ⇒ Unit): Unit
Applies a function f to the underlying value of this
Present
.Applies a function f to the underlying value of this
Present
.- f
the function that takes
A
-
def
get: A
the underlying value
the underlying value
- returns
the underlying value
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B](f: (A) ⇒ B): Present[B]
Builds a new
Present
by applying a function to the underlying value of thisPresent
that returns typeB
.Builds a new
Present
by applying a function to the underlying value of thisPresent
that returns typeB
.- f
the function to transfrom type
A
to typeB
- returns
a
Present
ofB
-
def
toString(): String
A string that includes the underlying value of this
Present
.A string that includes the underlying value of this
Present
.- returns
a string representation of this object
- Definition Classes
- Present → Any
- val value: A