Class/Object

org.specs2.control

Property

Related Docs: object Property | package control

Permalink

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)

    Permalink

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. def apply(newValue: ⇒ T): Property[T]

    Permalink

    alial for update

  5. def apply(): T

    Permalink

    alias for get

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Property → Equals → AnyRef → Any
  10. val evaluated: Boolean

    Permalink
  11. val evaluatedValue: Option[T]

    Permalink
  12. def filter(p: (T) ⇒ Boolean): Property[T]

    Permalink

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

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[U](f: (T) ⇒ Option[U]): Property[U]

    Permalink

    option-like flatMap

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

    Permalink

    option-like foreach

  16. def get: T

    Permalink

    returns

    a value

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getOrElse[U >: T](other: U): U

    Permalink

    option-like getOrElse

  19. def hashCode(): Int

    Permalink
    Definition Classes
    Property → AnyRef → Any
  20. def isDefined: Boolean

    Permalink

    option-like isDefined

  21. def isEmpty: Boolean

    Permalink

    option-like isEmpty

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def iterator: Iterator[T]

    Permalink

    returns

    an iterator containing the value if present

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

    Permalink

    option-like map

  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. def optionalValue: Option[T]

    Permalink

    returns

    the option(value)

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

    Permalink

    option-like orElse

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

    Permalink
    Definition Classes
    AnyRef
  31. def toLeft[R](right: R): Product with Serializable with Either[T, R]

    Permalink

    option-like toLeft

  32. def toList: List[T]

    Permalink

    to a list

  33. def toOption: Option[T]

    Permalink

    alias for optionalValue

  34. def toRight[L](left: L): Product with Serializable with Either[L, T]

    Permalink

    option-like toRight

  35. def toString(): String

    Permalink

    returns

    an Option-like representation

    Definition Classes
    Property → AnyRef → Any
  36. def update(newValue: ⇒ T): Property[T]

    Permalink

    update the value

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

    Permalink

    change the value

  38. val value: () ⇒ Option[T]

    Permalink
  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def withValue(init: ⇒ T): Property[T]

    Permalink

    change the value

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped