Class/Object

org.scalactic

Present

Related Docs: object Present | package scalactic

Permalink

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, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Present
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    the underlying value

    the underlying value

    returns

    the underlying value

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

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

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

    Permalink

    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

    Permalink

    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

    Permalink

    the underlying value

Inherited from AnyVal

Inherited from Any

Ungrouped