Class PropertyValue<T>

java.lang.Object
is.codion.common.value.AbstractValue<T>
is.codion.common.property.PropertyValue<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
Observable<T>, Observer<T>, Value<T>

public final class PropertyValue<T> extends AbstractValue<T>
A Value associated with a named property.
  • Method Details

    • name

      public String name()
      Returns:
      the name of the property this value represents
    • getOrThrow

      public T getOrThrow()
      Returns:
      the value
    • remove

      public void remove()
      Sets this value to null as well as removing it from the underlying store and clearing the system property.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      protected @Nullable T getValue()
      Description copied from class: AbstractValue
      Returns the actual internal value.
      Specified by:
      getValue in class AbstractValue<T>
      Returns:
      the value
    • setValue

      protected void setValue(@Nullable T value)
      Description copied from class: AbstractValue
      Sets the actual internal value.
      Specified by:
      setValue in class AbstractValue<T>
      Parameters:
      value - the value