case class Property[T](value: () ⇒ Option[T], evaluated: Boolean = false, evaluatedValue: Option[T] = None) extends Product with Serializable

This class represents values which are evaluated lazily and which may even be missing.

It has Option-like function and can be also converted to an Either object

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Property
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Property(value: () ⇒ Option[T], evaluated: Boolean = false, evaluatedValue: Option[T] = None)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(newValue: ⇒ T): Property[T]

    alias for update

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(other: Any): Boolean
    Definition Classes
    Property → Equals → AnyRef → Any
  9. val evaluated: Boolean
  10. val evaluatedValue: Option[T]
  11. def filter(p: (T) ⇒ Boolean): Property[T]

    return the property with the value being filtered according to a predicate

  12. def flatMap[U](f: (T) ⇒ Option[U]): Property[U]

    option-like flatMap

  13. def foreach(f: (T) ⇒ Unit): Unit

    option-like foreach

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def getOrElse[U >: T](other: U): U

    option-like getOrElse

  16. def hashCode(): Int
    Definition Classes
    Property → AnyRef → Any
  17. def isDefined: Boolean

    option-like isDefined

  18. def isEmpty: Boolean

    option-like isEmpty

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def iterator: Iterator[T]

    returns

    an iterator containing the value if present

  21. def map[U](f: (T) ⇒ U): Property[U]

    option-like map

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. def optionalValue: Option[T]

    returns

    the option(value)

  26. def orElse[U >: T](other: ⇒ Property[U]): Property[U]

    option-like orElse

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toLeft[R](right: R): Either[T, R]

    option-like toLeft

  29. def toList: List[T]

    to a list

  30. def toOption: Option[T]

    alias for optionalValue

  31. def toRight[L](left: L): Either[L, T]

    option-like toRight

  32. def toString(): String
    Definition Classes
    Property → AnyRef → Any
  33. def update(newValue: ⇒ T): Property[T]

    update the value

  34. def updateValue(init: ⇒ Option[T]): Property[T]

    change the value

  35. val value: () ⇒ Option[T]
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def withValue(init: ⇒ T): Property[T]

    change the value

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped