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

public abstract class VariableProperty<T> extends Object
A property with a value that may change in certain circumstances.
  • Field Details

    • random

      protected static final Random random
  • Constructor Details

    • VariableProperty

      public VariableProperty()
  • Method Details

    • getValue

      public abstract T 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:
      true if the value of this property is not null.
    • hasValue

      public boolean hasValue(T value)
      Checks if this property has a given value.
      Parameters:
      value - The value to check for
      Returns:
      true if the value of this property is equal to value.