Class ReadOnlyProperty<T>

java.lang.Object
modelarium.entities.attributes.ReadOnlyAttribute<Property<T,?>>
modelarium.entities.attributes.properties.ReadOnlyProperty<T>
Type Parameters:
T - the type of value carried by the property

public final class ReadOnlyProperty<T> extends ReadOnlyAttribute<Property<T,?>>
Provides a read-only view of a typed property attribute.
  • Method Details

    • type

      public Class<T> type()
      Returns the class of the value this property carries.
      Returns:
      the property's value type
    • toString

      public String toString()
      Returns the string representation of the property value.
      Overrides:
      toString in class Object
      Returns:
      the property's value as a string
    • get

      public T get()
      Returns this property's current value.
      Returns:
      the property's value