Package com.landawn.abacus.util
Class Maps.MapGetter<K,V>
java.lang.Object
com.landawn.abacus.util.Maps.MapGetter<K,V>
- Enclosing class:
- Maps
-
Method Summary
Modifier and TypeMethodDescription<T> T
Returnsnull
if no value found by the specifiedkey
, or the value isnull
.<T> T
Returnsnull
if no value found by the specifiedkey
, or the value isnull
.getBigDecimal
(Object key) getBigInteger
(Object key) getBoolean
(Object key) getCalendar
(Object key) getLocalDate
(Object key) getLocalDateTime
(Object key) getLocalTime
(Object key) getTimestamp
(Object key) getZonedDateTime
(Object key) static <K,
V> Maps.MapGetter<K, V> static <K,
V> Maps.MapGetter<K, V>
-
Method Details
-
of
-
of
-
getBoolean
-
getChar
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getBigInteger
-
getBigDecimal
-
getString
-
getCalendar
-
getJUDate
-
getDate
-
getTime
-
getTimestamp
-
getLocalDate
-
getLocalTime
-
getLocalDateTime
-
getZonedDateTime
-
getObject
-
get
Returnsnull
if no value found by the specifiedkey
, or the value isnull
.
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
key
-targetType
-- Returns:
-
get
Returnsnull
if no value found by the specifiedkey
, or the value isnull
.
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
key
-targetType
-- Returns:
-