- 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 returningnull
where possible. So a neutral element is returned instead ofnull
for each type supporting this (e.g. "" forString
,0
for any kind ofNumber
,Boolean.FALSE
, empty collection, etc.).
-
get
Null-safe access toget()
.- Type Parameters:
T
- type of thevalue
- Parameters:
value
- theReadableValue
to unwrap.- Returns:
- the
value
of theReadableValue
. Will benull
if the givenReadableValue
isnull
or itsvalue
isnull
.
-