- Type Parameters:
V- type of thevalue.
- All Superinterfaces:
Supplier<V>
- All Known Subinterfaces:
PropertyPath<V>,ReadableTypedValue<V>,TypedPropertyPath<V>,WritableValue<V>
This interface gives read access to the
value of an object.- Since:
- 1.0.0
-
Method Summary
-
Method Details
-
get
V get() -
getSafe
V getSafe()- Returns:
- the same as
get()but trying to avoid returningnullwhere possible. So a neutral element is returned instead ofnullfor each type supporting this (e.g. "" forString,0for any kind ofNumber,Boolean.FALSE, empty collection, etc.).
-
get
Null-safe access toget().- Type Parameters:
T- type of thevalue- Parameters:
value- theReadableValueto unwrap.- Returns:
- the
valueof theReadableValue. Will benullif the givenReadableValueisnullor itsvalueisnull.
-