Class StoredIntProperty

java.lang.Object
dev.prozilla.pine.common.property.storage.StoredProperty<Integer>
dev.prozilla.pine.common.property.storage.StoredIntProperty
All Implemented Interfaces:
Destructible, IntProperty, MutableIntProperty, MutableObjectProperty<Integer>, MutableProperty<Integer>, NonNullProperty<Integer>, Property<Integer>, Functor<Integer>

public class StoredIntProperty extends StoredProperty<Integer> implements MutableIntProperty
  • Constructor Details

    • StoredIntProperty

      public StoredIntProperty(Storage storage, String key)
  • Method Details

    • set

      public boolean set(int value)
      Description copied from interface: MutableIntProperty
      Sets the value of this property.
      Specified by:
      set in interface MutableIntProperty
      Parameters:
      value - The new value
      Returns:
      true if the value was changed.
    • getValue

      public Integer getValue()
      Description copied from interface: Property
      Returns the value of this property.
      Specified by:
      getValue in interface IntProperty
      Specified by:
      getValue in interface Property<Integer>
      Specified by:
      getValue in class StoredProperty<Integer>
      Returns:
      The value of this property.
    • get

      public int get()
      Description copied from interface: IntProperty
      Returns the primitive value of this property.
      Specified by:
      get in interface IntProperty
      Returns:
      The primitive value of this property.