Class FixedObjectProperty<T>

java.lang.Object
dev.prozilla.pine.common.property.fixed.FixedObjectProperty<T>
All Implemented Interfaces:
Cloneable<FixedObjectProperty<T>>, FixedProperty<T>, Property<T>, Functor<T>
Direct Known Subclasses:
FixedColorProperty, FixedStringProperty

public class FixedObjectProperty<T> extends Object implements FixedProperty<T>, Cloneable<FixedObjectProperty<T>>
  • Field Details

    • value

      protected final T value
  • Constructor Details

    • FixedObjectProperty

      public FixedObjectProperty(T value)
  • Method Details

    • getValue

      public final T getValue()
      Description copied from interface: Property
      Returns the value of this property.
      Specified by:
      getValue in interface Property<T>
      Returns:
      The value of this property.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(FixedObjectProperty<T> fixedProperty)
      Description copied from interface: Cloneable
      Checks if the given object is equal to this object.
      Specified by:
      equals in interface Cloneable<T>
      Parameters:
      fixedProperty - Other object
      Returns:
      true if both objects are equal.
    • clone

      public FixedObjectProperty<T> clone()
      Description copied from interface: Cloneable
      Returns a new object that is equal to this object.
      Specified by:
      clone in interface Cloneable<T>
      Overrides:
      clone in class Object
      Returns:
      Clone of this object