Package org.jsignal.rx
Record Class Computed<T>
java.lang.Object
java.lang.Record
org.jsignal.rx.Computed<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jsignal.rx.SkipMemo
SkipMemo.SkipSupplier<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Computed<T> static <T> Computed<T> effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.get()final inthashCode()Returns a hash code value for this object.signal()Returns the value of thesignalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Computed
Creates an instance of aComputedrecord class.- Parameters:
signal- the value for thesignalrecord componenteffect- the value for theeffectrecord component
-
-
Method Details
-
getEffect
-
get
-
create
-
create
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
signal
Returns the value of thesignalrecord component.- Returns:
- the value of the
signalrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-