Class AdaptiveObjectProperty<T>
java.lang.Object
dev.prozilla.pine.common.property.adaptive.AdaptiveProperty<T,Property<T>>
dev.prozilla.pine.common.property.adaptive.AdaptiveObjectProperty<T>
- All Implemented Interfaces:
Animatable,Property<T>,Functor<T>
- Direct Known Subclasses:
AdaptiveColorProperty,AdaptiveStringProperty
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.adaptive.AdaptiveProperty
animatedProperty, property -
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveObjectProperty(Property<T> property) Creates a new property with a dynamic value.AdaptiveObjectProperty(T fixedValue) Creates a new property with a fixed value. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AdaptiveObjectProperty<T> adapt(AdaptiveObjectProperty<T> property) static <T> AdaptiveObjectProperty<T> Converts any object property into an adaptive property.static <T> AdaptiveObjectProperty<T> adapt(T value) Converts an object into an adaptive property.getValue()Returns the value of this property.Methods inherited from class dev.prozilla.pine.common.property.adaptive.AdaptiveProperty
isAnimated, isDynamic, restartAnimation, updateAnimationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.Property
getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, replaceNull, requireValue, snapshot, toStringProperty
-
Constructor Details
-
AdaptiveObjectProperty
Creates a new property with a dynamic value.- Parameters:
property- Variable property that determines the value of this property
-
AdaptiveObjectProperty
Creates a new property with a fixed value.
-
-
Method Details
-
getValue
Description copied from interface:PropertyReturns the value of this property.- Returns:
- The value of this property.
-
adapt
Converts an object into an adaptive property.- Parameters:
value- The value of the property
-
adapt
-
adapt
Converts any object property into an adaptive property.- Parameters:
property- The property to adapt
-