Class VariableProperty<T>
java.lang.Object
dev.prozilla.pine.common.property.VariableProperty<T>
- Type Parameters:
T- The type of property
- Direct Known Subclasses:
AdaptivePropertyBase,AnimatedProperty,ConditionalProperty,FixedProperty,LazyProperty,MutableProperty,RandomProperty,StyledProperty,SuppliedProperty,VariableAnimatedProperty,VariableColorProperty
A property with a value that may change in certain circumstances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
random
-
-
Constructor Details
-
VariableProperty
public VariableProperty()
-
-
Method Details
-
getValue
Returns the value of this property.- Returns:
- The value of this property.
-
exists
public boolean exists()Checks if this property has any value.- Returns:
trueif the value of this property is notnull.
-
hasValue
Checks if this property has a given value.- Parameters:
value- The value to check for- Returns:
trueif the value of this property is equal tovalue.
-