Package arez.annotations
Enum Class DepType
- All Implemented Interfaces:
Serializable
,Comparable<DepType>
,Constable
Enumeration that describes the types of dependencies supported by an
Observer
or a ComputableValue
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe reactive element MUST have at least one dependency on anObservableValue
.The reactive element may have zero or more dependencies onObservableValue
instances and/or may have dependencies on non-arez elements.The reactive element may have dependencies on zero or moreObservableValue
instances. -
Method Summary
-
Enum Constant Details
-
AREZ
The reactive element MUST have at least one dependency on anObservableValue
. This means that thecomputable
orobserved
method must invokeObservableValue.reportObserved()
at least once within the scope of the method. -
AREZ_OR_NONE
The reactive element may have dependencies on zero or moreObservableValue
instances. Using this dependency type also allows for the scenario where thecomputable
orobserved
does not invokeObservableValue.reportObserved()
within the scope of the method. Thecomputable
orobserved
will not be re-scheduled by the runtime when there are no dependencies. (This is sometimes acceptable, particularly during when a collection of components are being disposed over multiple scheduling rounds). -
AREZ_OR_EXTERNAL
The reactive element may have zero or more dependencies onObservableValue
instances and/or may have dependencies on non-arez elements. The application can invokeObserver.reportStale()
orComputableValue.reportPossiblyChanged()
to indicate non-arez dependency has changed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-