Interface IPropertyValue<T>
- Type Parameters:
T- The type of the value.
public sealed interface IPropertyValue<T>
Represents the immutable value of a property.
-
Method Summary
-
Method Details
-
isSet
boolean isSet()Checks whether the value is set for this property.- Returns:
trueif the value is set,falseotherwise.
-
isRequired
boolean isRequired()Checks if the property is required.When set to
true, the property cannot be removed from the property container and will throw an exception if an attempt is made to do so.- Returns:
trueif the property is required,falseotherwise.
-
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
-