Packages

t

io.udash.properties.single

CastableReadableProperty

trait CastableReadableProperty[A] extends ReadableProperty[A]

Property which can be casted.
NOTE: Those casts are checked in compilation time: "it compiles" == "it works".

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CastableReadableProperty
  2. ReadableProperty
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def get: A

    returns

    Current property value.

    Definition Classes
    ReadableProperty
  2. abstract def listen(valueListener: (A) => Any, initUpdate: Boolean = false): utils.Registration

    Registers listener which will be called on value change.

    Registers listener which will be called on value change.

    initUpdate

    If true, listener will be instantly triggered with current value of property.

    Definition Classes
    ReadableProperty
  3. abstract def listenOnce(valueListener: (A) => Any): utils.Registration

    Registers listener which will be called on the next value change.

    Registers listener which will be called on the next value change. This listener will be fired only once.

    Definition Classes
    ReadableProperty
  4. abstract def listenersCount(): Int

    Returns listeners count.

    Returns listeners count.

    Definition Classes
    ReadableProperty
  5. abstract def listenersUpdate(): Unit

    This method should be called when the listener is registered or removed.

    This method should be called when the listener is registered or removed.

    Attributes
    protected[properties]
    Definition Classes
    ReadableProperty
  6. abstract def streamTo[B](target: Property[B], initUpdate: Boolean = true)(transformer: (A) => B): utils.Registration

    Streams value changes to the target property.

    Streams value changes to the target property. It is not as strong relation as transform, because target can change value independently.

    Definition Classes
    ReadableProperty
  7. abstract def transform[B](transformer: (A) => B): ReadableProperty[B]

    Creates ReadableProperty[B] linked to this.

    Creates ReadableProperty[B] linked to this. Changes will be synchronized with this.

    B

    Type of new Property.

    transformer

    Method transforming type A of existing Property to type B of new Property.

    returns

    New ReadableProperty[B], which will be synchronised with original ReadableProperty[A].

    Definition Classes
    ReadableProperty
  8. abstract def transformToSeq[B](transformer: (A) => com.avsystem.commons.BSeq[B])(implicit arg0: PropertyCreator[B]): seq.ReadableSeqProperty[B, ReadableProperty[B]]

    Creates ReadableSeqProperty[B] linked to this.

    Creates ReadableSeqProperty[B] linked to this. Changes will be synchronized with this.

    B

    Type of elements in new SeqProperty.

    transformer

    Method transforming type A of existing Property to type Seq[B] of new Property.

    returns

    New ReadableSeqProperty[B], which will be synchronised with original ReadableProperty[A].

    Definition Classes
    ReadableProperty
  9. abstract def valueChanged(): Unit

    This method should be called when the value has changed.

    This method should be called when the value has changed.

    Attributes
    protected[properties]
    Definition Classes
    ReadableProperty

Concrete 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asModel(implicit ev: ModelPropertyCreator[A]): model.ReadableModelProperty[A]

    Safely casts DirectProperty[A] to ModelProperty[A]

  6. def asSeq[B](implicit sev: <:<[A, com.avsystem.commons.BSeq[B]], ev: SeqPropertyCreator[B, com.avsystem.commons.BSeq]): seq.ReadableSeqProperty[B, CastableReadableProperty[B]]

    Safely casts DirectProperty[Seq[A]] to DirectSeqProperty[A]

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def combine[B, O](property: ReadableProperty[B])(combiner: (A, B) => O): ReadableProperty[O]

    Combines two properties into a new one.

    Combines two properties into a new one. Created property will be updated after any change in the origin ones.

    B

    Type of elements in provided property.

    O

    Output property elements type.

    property

    Property[B] to combine with this.

    combiner

    Method combining values A and B into O.

    returns

    Property[O] updated on any change in this or property.

    Definition Classes
    ReadableProperty
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def mirror[B >: A]()(implicit arg0: PropertyCreator[B]): MirrorProperty[B]

    Creates a mutable copy of this property which follows the stream of updates from this property.

    Creates a mutable copy of this property which follows the stream of updates from this property. Similarly to streamTo, the target can change value independently and origin value updates can be cancelled.

    Definition Classes
    ReadableProperty
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from ReadableProperty[A]

Inherited from AnyRef

Inherited from Any

Ungrouped