org.specs2.control

Property

case class Property[T](value: () ⇒ Option[T], evaluated: Boolean, evaluatedValue: Option[T]) 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. Hide All
  2. Show all
  1. Property
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(newValue: ⇒ T): Property[T]

    alial for update

  7. def apply(): T

    alias for get

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def canEqual(arg0: Any): Boolean

    Definition Classes
    Property → Equals
  10. def clone(): AnyRef

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

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

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

  14. val evaluatedValue: Option[T]

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

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

  16. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def flatMap[U](f: (T) ⇒ Option[U]): Property[U]

    option-like flatMap

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

    option-like foreach

  19. def get: T

    returns

    a value

  20. final def getClass(): java.lang.Class[_]

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

    option-like getOrElse

  22. def hashCode(): Int

    Definition Classes
    Property → AnyRef → Any
  23. def isDefined: Boolean

    option-like isDefined

  24. def isEmpty: Boolean

    option-like isEmpty

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def iterator: Iterator[T]

    returns

    an iterator containing the value if present

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

    option-like map

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def optionalValue: Option[T]

    returns

    the option(value)

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

    option-like orElse

  33. def productArity: Int

    Definition Classes
    Property → Product
  34. def productElement(arg0: Int): Any

    Definition Classes
    Property → Product
  35. def productIterator: Iterator[Any]

    Definition Classes
    Product
  36. def productPrefix: String

    Definition Classes
    Property → Product
  37. final def synchronized[T0](arg0: ⇒ T0): T0

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

    option-like toLeft

  39. def toList: List[T]

    to a list

  40. def toOption: Option[T]

    alias for optionalValue

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

    option-like toRight

  42. def toString(): String

    returns

    an Option-like representation

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

    update the value

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

    change the value

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

  46. final def wait(): Unit

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

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

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

    change the value

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any