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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Property
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Property(value: () => Option[T], evaluated: Boolean = false, evaluatedValue: Option[T] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(newValue: => T): Property[T]
alias for update
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- Property → Equals → AnyRef → Any
- val evaluated: Boolean
- val evaluatedValue: Option[T]
- def filter(p: (T) => Boolean): Property[T]
return the property with the value being filtered according to a predicate
- def flatMap[U](f: (T) => Option[U]): Property[U]
option-like flatMap
- def foreach(f: (T) => Unit): Unit
option-like foreach
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getOrElse[U >: T](other: U): U
option-like getOrElse
- def hashCode(): Int
- Definition Classes
- Property → AnyRef → Any
- def isDefined: Boolean
option-like isDefined
- def isEmpty: Boolean
option-like isEmpty
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator: Iterator[T]
- returns
an iterator containing the value if present
- def map[U](f: (T) => U): Property[U]
option-like map
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def optionalValue: Option[T]
- returns
the option(value)
- def orElse[U >: T](other: => Property[U]): Property[U]
option-like orElse
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLeft[R](right: R): Either[T, R]
option-like toLeft
- def toList: List[T]
to a list
- def toOption: Option[T]
alias for optionalValue
- def toRight[L](left: L): Either[L, T]
option-like toRight
- def toString(): String
- Definition Classes
- Property → AnyRef → Any
- def update(newValue: => T): Property[T]
update the value
- def updateValue(init: => Option[T]): Property[T]
change the value
- val value: () => Option[T]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withValue(init: => T): Property[T]
change the value
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated