Type Parameters:
T - The type of the value.

public sealed interface IPropertyValue<T>
Represents the immutable value of a property.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the value is set for this property.
    Gets the type of the value.
    Gets the value of this property.
  • Method Details

    • isSet

      boolean isSet()
      Checks whether the value is set for this property.
      Returns:
      True if the value is set, false otherwise.
    • value

      @Nullable T value()
      Gets the value of this property.

      The value may be null if the property is not set or if the value is null.

      Returns:
      The value of this property.
    • type

      Class<T> type()
      Gets the type of the value.

      If the value is not set (see isSet()), the type defaults to Object.

      Returns:
      The type of the value.