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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
optionalValue: Option[T]
- returns
the option(value)
-
def
orElse[U >: T](other: ⇒ Property[U]): Property[U]
option-like orElse
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withValue(init: ⇒ T): Property[T]
change the value