org.scalactic

Present

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

Source
Present.scala
Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Present
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def flatMap[B](f: (A) ⇒ Present[B]): Present[B]

    Builds a new Present by applying a function to underlying value of this Present that returns type Present[B].

    Builds a new Present by applying a function to underlying value of this Present that returns type Present[B].

    f

    the function that takes type A and returns a type Present[B]

    returns

    a Present of B

  6. 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

  7. def get: A

    the underlying value

    the underlying value

    returns

    the underlying value

  8. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  10. def map[B](f: (A) ⇒ B): Present[B]

    Builds a new Present by applying a function to the underlying value of this Present that returns type B.

    Builds a new Present by applying a function to the underlying value of this Present that returns type B.

    f

    the function to transfrom type A to type B

    returns

    a Present of B

  11. 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
  12. val value: A

    the underlying value

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped