Object

framian

NA

Related Doc: package framian

Permalink

object NA extends NonValue with Product with Serializable

A value is Not Available (NA)

This represents the absence of any data.

Source
Cell.scala
See also

Cell NonValue NM Value

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NA
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. NonValue
  7. Cell
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def collect[B](pf: PartialFunction[Nothing, B]): Cell[B]

    Permalink

    Returns a Value containing the result of appling pf to this Cell's value if it is available and meaningful and pf is defined for that value.

    Returns a Value containing the result of appling pf to this Cell's value if it is available and meaningful and pf is defined for that value. Otherwise return NA, unless this Cell is NM.

    pf

    the partial function to apply to a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    filterNot

    filter

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    NonValue → AnyRef → Any
  9. final def exists(p: (Nothing) ⇒ Boolean): Boolean

    Permalink

    Returns true if this Cell's value is available and meaningful and the predicate p returns true when applied to that value.

    Returns true if this Cell's value is available and meaningful and the predicate p returns true when applied to that value. Otherwise, returns false.

    p

    the predicate to test a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    forall

  10. final def filter(p: (Nothing) ⇒ Boolean): Cell[Nothing]

    Permalink

    Returns this Cell unless it contains a value that is available and meaningful and applying the predicate p to that value returns false, then return NA.

    Returns this Cell unless it contains a value that is available and meaningful and applying the predicate p to that value returns false, then return NA.

    p

    the predicate used to test a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    collect

    filterNot

  11. final def filterNot(p: (Nothing) ⇒ Boolean): Cell[Nothing]

    Permalink

    Returns this Cell unless it contains a value that is available and meaningful and applying the predicate p to that value returns true, then return NA.

    Returns this Cell unless it contains a value that is available and meaningful and applying the predicate p to that value returns true, then return NA.

    p

    the predicate to test a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    collect

    filter

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def flatMap[B](f: (Nothing) ⇒ Cell[B]): Cell[B]

    Permalink

    Returns the result of applying f to this Cell's value if it is available and meaningful.

    Returns the result of applying f to this Cell's value if it is available and meaningful.

    f

    the function to apply to a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    foreach

    map

  14. final def flatten[B](implicit ev: <:<[Nothing, Cell[B]]): Cell[B]

    Permalink

    Flatten a nested Cell with type Cell[Cell[B]] into Cell[B].

    Flatten a nested Cell with type Cell[Cell[B]] into Cell[B].

    Definition Classes
    Cell
    Annotations
    @inline()
    Note

    there must be implicit evident that A is a subtype of Cell[B].

  15. final def fold[B](na: ⇒ B, nm: ⇒ B)(f: (Nothing) ⇒ B): B

    Permalink

    Returns the result of applying f to this Cell's value.

    Returns the result of applying f to this Cell's value. Otherwise, evaluates expression na if a value is not available, or evaluates expression nm if the value is not meaningful.

    na

    the expression to evaluate if no value is available.

    nm

    the expression to evaluate if the value in not meaningful.

    f

    the function to apply to a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
  16. final def forall(p: (Nothing) ⇒ Boolean): Boolean

    Permalink

    Returns true if this Cell's value is unavailable (NA) or the predicate p returns true when applied to this Cell's meaningful value.

    Returns true if this Cell's value is unavailable (NA) or the predicate p returns true when applied to this Cell's meaningful value.

    p

    the predicate to test a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    Note

    NA represents the vacuous case, so will result in true, but NM will result in false.

    See also

    exists

  17. final def foreach[U](f: (Nothing) ⇒ U): Unit

    Permalink

    Apply the the given procedure f to the Cell's value if it is available and meaningful.

    Apply the the given procedure f to the Cell's value if it is available and meaningful. Otherwise, do nothing.

    f

    the procedure to apply to a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    flatMap

    map

  18. def get: Nothing

    Permalink

    Return the Cell's value.

    Return the Cell's value.

    Definition Classes
    NACell
    Exceptions thrown

    NoSuchElementException if the value is unavailable or not meaningful.

    Note

    The Cell's value must be both available and meaningful.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def getOrElse[B >: Nothing](default: ⇒ B): B

    Permalink

    Returns the Cell's value if it is available and meaningful, otherwise returns the result of evaluating expression default.

    Returns the Cell's value if it is available and meaningful, otherwise returns the result of evaluating expression default.

    default

    the default expression.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    orElse

    get

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def isNonValue: Boolean

    Permalink

    Returns true if this Cell is not a value that is available and meaningful.

    Returns true if this Cell is not a value that is available and meaningful.

    returns

    true if this Cell is not a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    NM

    NA

    NonValue

  23. def isValue: Boolean

    Permalink

    Returns true if this Cell is a value that is available and meaningful.

    Returns true if this Cell is a value that is available and meaningful.

    returns

    true if this Cell is a value that is available and meaningful.

    Definition Classes
    NonValueCell
    See also

    Value

  24. final def map[B](f: (Nothing) ⇒ B): Cell[B]

    Permalink

    Returns a Value containing the result of applying f to this Cell's value if it is available and meaningful.

    Returns a Value containing the result of applying f to this Cell's value if it is available and meaningful.

    f

    the function to apply to a value that is available and meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    foreach

    flatMap

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def orElse[B >: Nothing](alternative: ⇒ Cell[B]): Cell[B]

    Permalink

    Returns this Cell if its value is available and meaningful, otherwise return the result of evaluating alternative.

    Returns this Cell if its value is available and meaningful, otherwise return the result of evaluating alternative.

    alternative

    the alternative expression

    Definition Classes
    Cell
    Annotations
    @inline()
    See also

    getOrElse

  29. final def recover[A0 >: Nothing](pf: PartialFunction[NonValue, A0]): Cell[A0]

    Permalink

    If this cell is a NonValue and pf is defined for it, then this will return Value(pf(this)), otherwise it will return this cell as-is.

    If this cell is a NonValue and pf is defined for it, then this will return Value(pf(this)), otherwise it will return this cell as-is.

    pf

    the partial function to map the non-value.

    Definition Classes
    Cell
    See also

    recoverWith

  30. final def recoverWith[A0 >: Nothing](pf: PartialFunction[NonValue, Cell[A0]]): Cell[A0]

    Permalink

    If this cell is a NonValue and pf is defined for it, then this will return pf(this), otherwise it will return this cell as-is.

    If this cell is a NonValue and pf is defined for it, then this will return pf(this), otherwise it will return this cell as-is.

    pf

    the partial function to map the non-value.

    Definition Classes
    Cell
    See also

    recover

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. final def toList: List[Nothing]

    Permalink

    Returns a singleton list containing the Cell's value, or the empty list if the Cell's value is unavailable or not meaningful.

    Returns a singleton list containing the Cell's value, or the empty list if the Cell's value is unavailable or not meaningful.

    Definition Classes
    Cell
    Annotations
    @inline()
  33. final def toOption: Option[Nothing]

    Permalink

    Project this Cell to an Option

    Project this Cell to an Option

    returns

    Some of the value or None for non values

    Definition Classes
    Cell
    Annotations
    @inline()
  34. def value: None.type

    Permalink

    Project this Cell to an Option

    Project this Cell to an Option

    returns

    Some of the value or None for non values

    Definition Classes
    NonValueCell
  35. val valueString: String

    Permalink

    Returns the contents of the Cell as a String

    Returns the contents of the Cell as a String

    returns

    the content of the Cell as a String.

    Definition Classes
    NACell
    Note

    NA.valueString == "NA"
    NA.valueString == "NM"
    Value(1D).valueString == "1.0"
    NA.toString == "NA"
    NM.toString == "NM"
    Value(1D).toString == "Value(1.0)"
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def zipMap[B, C](that: Cell[B])(f: (Nothing, B) ⇒ C): Cell[C]

    Permalink

    If both this and that are values, then this returns a value derived by applying f to the values of them.

    If both this and that are values, then this returns a value derived by applying f to the values of them. Otherwise, if either this or that is NA, then NA is returned, otherwise NM is returned.

    Definition Classes
    Cell
    Annotations
    @inline()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NonValue

Inherited from Cell[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped