public final class Maps extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Map<?,?> map,
Map.Entry<?,?> entry)
Check if the specified
Map contains the specified Entry . |
static boolean |
contains(Map<?,?> map,
Object key,
Object value) |
static List<Map<String,Object>> |
deepEntity2Map(Collection<?> entityList)
Deep entity 2 map.
|
static List<Map<String,Object>> |
deepEntity2Map(Collection<?> entityList,
boolean ignoreNullProperty)
Deep entity 2 map.
|
static List<Map<String,Object>> |
deepEntity2Map(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static List<Map<String,Object>> |
deepEntity2Map(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Deep entity 2 map.
|
static List<Map<String,Object>> |
deepEntity2Map(Collection<?> entityList,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(M resultMap,
Object entity)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(M resultMap,
Object entity,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static Map<String,Object> |
deepEntity2Map(Object entity)
Deep entity 2 map.
|
static Map<String,Object> |
deepEntity2Map(Object entity,
boolean ignoreNullProperty)
Deep entity 2 map.
|
static Map<String,Object> |
deepEntity2Map(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static Map<String,Object> |
deepEntity2Map(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Deep entity 2 map.
|
static Map<String,Object> |
deepEntity2Map(Object entity,
Collection<String> ignoredPropNames)
Deep entity 2 map.
|
static <M extends Map<String,Object>> |
deepEntity2Map(Object entity,
Supplier<? extends M> mapSupplier)
Deep entity 2 map.
|
static <K,V> Map<K,Pair<V,u.Nullable<V>>> |
difference(Map<K,V> map,
Map<K,V> map2) |
static List<Map<String,Object>> |
entity2FlatMap(Collection<?> entityList)
Entity 2 flat map.
|
static List<Map<String,Object>> |
entity2FlatMap(Collection<?> entityList,
boolean ignoreNullProperty)
Entity 2 flat map.
|
static List<Map<String,Object>> |
entity2FlatMap(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static List<Map<String,Object>> |
entity2FlatMap(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 flat map.
|
static List<Map<String,Object>> |
entity2FlatMap(Collection<?> entityList,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(M resultMap,
Object entity)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(M resultMap,
Object entity,
boolean ignoreNullProperty)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(M resultMap,
Object entity,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static Map<String,Object> |
entity2FlatMap(Object entity)
Entity 2 flat map.
|
static Map<String,Object> |
entity2FlatMap(Object entity,
boolean ignoreNullProperty)
Entity 2 flat map.
|
static Map<String,Object> |
entity2FlatMap(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static Map<String,Object> |
entity2FlatMap(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 flat map.
|
static Map<String,Object> |
entity2FlatMap(Object entity,
Collection<String> ignoredPropNames)
Entity 2 flat map.
|
static <M extends Map<String,Object>> |
entity2FlatMap(Object entity,
Supplier<? extends M> mapSupplier)
Entity 2 flat map.
|
static List<Map<String,Object>> |
entity2Map(Collection<?> entityList)
Entity 2 map.
|
static List<Map<String,Object>> |
entity2Map(Collection<?> entityList,
boolean ignoreNullProperty)
Entity 2 map.
|
static List<Map<String,Object>> |
entity2Map(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static List<Map<String,Object>> |
entity2Map(Collection<?> entityList,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 map.
|
static List<Map<String,Object>> |
entity2Map(Collection<?> entityList,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(M resultMap,
Object entity)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(M resultMap,
Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(M resultMap,
Object entity,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static Map<String,Object> |
entity2Map(Object entity)
Entity 2 map.
|
static Map<String,Object> |
entity2Map(Object entity,
boolean ignoreNullProperty)
Entity 2 map.
|
static Map<String,Object> |
entity2Map(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static Map<String,Object> |
entity2Map(Object entity,
boolean ignoreNullProperty,
Collection<String> ignoredPropNames,
NamingPolicy keyNamingPolicy)
Entity 2 map.
|
static Map<String,Object> |
entity2Map(Object entity,
Collection<String> ignoredPropNames)
Entity 2 map.
|
static <M extends Map<String,Object>> |
entity2Map(Object entity,
Supplier<? extends M> mapSupplier)
Entity 2 map.
|
static <K,V,E extends Exception> |
filter(Map<K,V> map,
Try.BiPredicate<? super K,? super V,E> predicate) |
static <K,V,E extends Exception> |
filterByKey(Map<K,V> map,
Try.Predicate<? super K,E> predicate)
Filter by key.
|
static <K,V,E extends Exception> |
filterByValue(Map<K,V> map,
Try.Predicate<? super V,E> predicate)
Filter by value.
|
static <K,V> Map<V,List<K>> |
flatInvert(Map<K,? extends Collection<? extends V>> map) |
static Map<String,Object> |
flatten(Map<String,Object> map) |
static <M extends Map<String,Object>> |
flatten(Map<String,Object> map,
String delimiter,
Supplier<? extends M> mapSupplier) |
static <M extends Map<String,Object>> |
flatten(Map<String,Object> map,
Supplier<? extends M> mapSupplier) |
static <K,V,E extends Exception> |
forEach(Map<K,V> map,
Try.BiConsumer<? super K,? super V,E> action) |
static <K,V> u.Nullable<V> |
get(Map<K,V> map,
Object key) |
static <K,E> Set<E> |
getAndPutLinkedHashSetIfAbsent(Map<K,Set<E>> map,
K key)
Returns the value associated with the specified
key if it exists in the specified map contains, or the new put Set if it's absent. |
static <K,E> List<E> |
getAndPutListIfAbsent(Map<K,List<E>> map,
K key)
Returns the value associated with the specified
key if it exists in the specified map contains, or the new put List if it's absent. |
static <K,KK,VV> Map<KK,VV> |
getAndPutMapIfAbsent(Map<K,Map<KK,VV>> map,
K key)
Returns the value associated with the specified
key if it exists in the specified map contains, or the new put Map if it's absent. |
static <K,E> Set<E> |
getAndPutSetIfAbsent(Map<K,Set<E>> map,
K key)
Returns the value associated with the specified
key if it exists in the specified map contains, or the new put Set if it's absent. |
static <K,V> List<V> |
getIfPresentForEach(Map<K,V> map,
Collection<?> keys)
Returns a list of values of the keys which exist in the specified
Map . |
static <K,V> V |
getOrDefault(Map<K,V> map,
Object key,
V defaultValue)
Returns the value to which the specified key is mapped, or
defaultValue if this map contains no mapping for the key. |
static <K,V> List<V> |
getOrDefaultForEach(Map<K,V> map,
Collection<?> keys,
V defaultValue)
Gets the or default for each.
|
static <K,E,V extends List<E>> |
getOrEmptyList(Map<K,V> map,
Object key)
Returns the value to which the specified key is mapped, or
an empty immutable
List if this map contains no mapping for the key. |
static <K,E,V extends Set<E>> |
getOrEmptySet(Map<K,V> map,
Object key)
Returns the value to which the specified key is mapped, or
an empty immutable
Set if this map contains no mapping for the key. |
static <K,V> Map<K,V> |
intersection(Map<K,V> map,
Map<? extends K,? extends V> map2) |
static <K,V> Map<V,K> |
invert(Map<K,V> map) |
static <K,V,E extends Exception> |
invert(Map<K,V> map,
Try.BinaryOperator<K,E> mergeOp) |
static <T> List<T> |
map2Entity(Class<T> targetClass,
Collection<Map<String,Object>> mList)
Map 2 entity.
|
static <T> List<T> |
map2Entity(Class<T> targetClass,
Collection<Map<String,Object>> mList,
boolean igoreNullProperty,
boolean ignoreUnknownProperty)
Map 2 entity.
|
static <T> List<T> |
map2Entity(Class<T> targetClass,
Collection<Map<String,Object>> mList,
Collection<String> selectPropNames)
Map 2 entity.
|
static <T> T |
map2Entity(Class<T> targetClass,
Map<String,Object> m)
Map 2 entity.
|
static <T> T |
map2Entity(Class<T> targetClass,
Map<String,Object> m,
boolean ignoreNullProperty,
boolean ignoreUnknownProperty)
Map 2 entity.
|
static <T> T |
map2Entity(Class<T> targetClass,
Map<String,Object> m,
Collection<String> selectPropNames)
Map 2 entity.
|
static <T,K,E extends Exception> |
newLinkedHashMap(Collection<? extends T> c,
Try.Function<? super T,? extends K,E> keyMapper)
New linked hash map.
|
static <T,K,E extends Exception> |
newMap(Collection<? extends T> c,
Try.Function<? super T,? extends K,E> keyMapper) |
static <T,K,V,E extends Exception,E2 extends Exception> |
newMap(Collection<? extends T> c,
Try.Function<? super T,? extends K,E> keyMapper,
Try.Function<? super T,? extends V,E2> valueExtractor) |
static <T,K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception> |
newMap(Collection<? extends T> c,
Try.Function<? super T,? extends K,E> keyMapper,
Try.Function<? super T,? extends V,E2> valueExtractor,
IntFunction<? extends M> mapSupplier) |
static <K,V> V |
putIfAbsent(Map<K,V> map,
K key,
Supplier<V> supplier)
Put if absent.
|
static <K,V> V |
putIfAbsent(Map<K,V> map,
K key,
V value)
Put if absent.
|
static <K,V> boolean |
remove(Map<K,V> map,
Map.Entry<?,?> entry)
Removes the specified entry.
|
static <K,V> boolean |
remove(Map<K,V> map,
Object key,
Object value) |
static boolean |
removeEntries(Map<?,?> map,
Map<?,?> entriesToRemove)
The the entries from the specified
Map . |
static <K,V,E extends Exception> |
removeIf(Map<K,V> map,
Try.Predicate<? super Map.Entry<K,V>,E> filter)
Removes entries from the specified
map by the the specified filter . |
static <K,V,E extends Exception> |
removeIfKey(Map<K,V> map,
Try.Predicate<? super K,E> filter)
Removes entries from the specified
map by the the specified filter . |
static <K,V,E extends Exception> |
removeIfValue(Map<K,V> map,
Try.Predicate<? super V,E> filter)
Removes entries from the specified
map by the the specified filter . |
static boolean |
removeKeys(Map<?,?> map,
Collection<?> keysToRemove)
Removes the keys.
|
static <K,V> V |
replace(Map<K,V> map,
K key,
V newValue) |
static <K,V> boolean |
replace(Map<K,V> map,
K key,
V oldValue,
V newValue) |
static <K,V,E extends Exception> |
replaceAll(Map<K,V> map,
Try.BiFunction<? super K,? super V,? extends V,E> function) |
static <K,V> Map<K,Pair<u.Nullable<V>,u.Nullable<V>>> |
symmetricDifference(Map<K,V> map,
Map<K,V> map2) |
static Map<String,Object> |
unflatten(Map<String,Object> map) |
static <M extends Map<String,Object>> |
unflatten(Map<String,Object> map,
String delimiter,
Supplier<? extends M> mapSupplier) |
static <M extends Map<String,Object>> |
unflatten(Map<String,Object> map,
Supplier<? extends M> mapSupplier) |
public static <T,K,E extends Exception> Map<K,T> newMap(Collection<? extends T> c, Try.Function<? super T,? extends K,E> keyMapper) throws E extends Exception
T
- K
- the key typeE
- c
- keyMapper
- E
- the eE extends Exception
public static <T,K,E extends Exception> Map<K,T> newLinkedHashMap(Collection<? extends T> c, Try.Function<? super T,? extends K,E> keyMapper) throws E extends Exception
T
- K
- the key typeE
- c
- keyMapper
- E
- the eE extends Exception
public static <T,K,V,E extends Exception,E2 extends Exception> Map<K,V> newMap(Collection<? extends T> c, Try.Function<? super T,? extends K,E> keyMapper, Try.Function<? super T,? extends V,E2> valueExtractor) throws E extends Exception, E2 extends Exception
T
- K
- the key typeV
- the value typeE
- E2
- c
- keyMapper
- valueExtractor
- E
- the eE2
- the e2E extends Exception
public static <T,K,V,M extends Map<K,V>,E extends Exception,E2 extends Exception> M newMap(Collection<? extends T> c, Try.Function<? super T,? extends K,E> keyMapper, Try.Function<? super T,? extends V,E2> valueExtractor, IntFunction<? extends M> mapSupplier) throws E extends Exception, E2 extends Exception
T
- K
- the key typeV
- the value typeM
- E
- E2
- c
- keyMapper
- valueExtractor
- mapSupplier
- E
- the eE2
- the e2E extends Exception
public static <K,V> u.Nullable<V> get(Map<K,V> map, Object key)
K
- the key typeV
- the value typemap
- key
- public static <K,V> List<V> getIfPresentForEach(Map<K,V> map, Collection<?> keys)
Map
.
If the key dosn't exist in the Map
, No value will be added into the returned list.K
- the key typeV
- the value typemap
- keys
- public static <K,V> V getOrDefault(Map<K,V> map, Object key, V defaultValue)
defaultValue
if this map contains no mapping for the key.K
- the key typeV
- the value typemap
- key
- defaultValue
- public static <K,E,V extends List<E>> List<E> getOrEmptyList(Map<K,V> map, Object key)
List
if this map contains no mapping for the key.K
- the key typeE
- V
- the value typemap
- key
- public static <K,E,V extends Set<E>> Set<E> getOrEmptySet(Map<K,V> map, Object key)
Set
if this map contains no mapping for the key.K
- the key typeE
- V
- the value typemap
- key
- public static <K,V> List<V> getOrDefaultForEach(Map<K,V> map, Collection<?> keys, V defaultValue)
K
- the key typeV
- the value typemap
- keys
- defaultValue
- public static <K,E> List<E> getAndPutListIfAbsent(Map<K,List<E>> map, K key)
key
if it exists in the specified map
contains, or the new put List
if it's absent.K
- the key typeE
- map
- key
- public static <K,E> Set<E> getAndPutSetIfAbsent(Map<K,Set<E>> map, K key)
key
if it exists in the specified map
contains, or the new put Set
if it's absent.K
- the key typeE
- map
- key
- public static <K,E> Set<E> getAndPutLinkedHashSetIfAbsent(Map<K,Set<E>> map, K key)
key
if it exists in the specified map
contains, or the new put Set
if it's absent.K
- the key typeE
- map
- key
- public static <K,KK,VV> Map<KK,VV> getAndPutMapIfAbsent(Map<K,Map<KK,VV>> map, K key)
key
if it exists in the specified map
contains, or the new put Map
if it's absent.K
- the key typeKK
- VV
- map
- key
- public static boolean contains(Map<?,?> map, Map.Entry<?,?> entry)
Map
contains the specified Entry
.map
- entry
- public static boolean contains(Map<?,?> map, Object key, Object value)
map
- key
- value
- public static <K,V> Map<K,V> intersection(Map<K,V> map, Map<? extends K,? extends V> map2)
K
- the key typeV
- the value typemap
- map2
- public static <K,V> Map<K,Pair<V,u.Nullable<V>>> difference(Map<K,V> map, Map<K,V> map2)
K
- the key typeV
- the value typemap
- map2
- public static <K,V> Map<K,Pair<u.Nullable<V>,u.Nullable<V>>> symmetricDifference(Map<K,V> map, Map<K,V> map2)
K
- the key typeV
- the value typemap
- map2
- public static <K,V> V putIfAbsent(Map<K,V> map, K key, V value)
K
- the key typeV
- the value typemap
- key
- value
- public static <K,V> V putIfAbsent(Map<K,V> map, K key, Supplier<V> supplier)
K
- the key typeV
- the value typemap
- key
- supplier
- public static <K,V> boolean remove(Map<K,V> map, Map.Entry<?,?> entry)
K
- the key typeV
- the value typemap
- entry
- public static <K,V> boolean remove(Map<K,V> map, Object key, Object value)
K
- the key typeV
- the value typemap
- key
- value
- public static boolean removeKeys(Map<?,?> map, Collection<?> keysToRemove)
map
- keysToRemove
- true
if any key/value was removed, otherwise false
.public static boolean removeEntries(Map<?,?> map, Map<?,?> entriesToRemove)
Map
.map
- entriesToRemove
- true
if any key/value was removed, otherwise false
.public static <K,V,E extends Exception> boolean removeIf(Map<K,V> map, Try.Predicate<? super Map.Entry<K,V>,E> filter) throws E extends Exception
map
by the the specified filter
.K
- the key typeV
- the value typeE
- map
- filter
- true
if there are one or more than one entries removed from the specified map.E
- the eE extends Exception
public static <K,V,E extends Exception> boolean removeIfKey(Map<K,V> map, Try.Predicate<? super K,E> filter) throws E extends Exception
map
by the the specified filter
.K
- the key typeV
- the value typeE
- map
- filter
- true
if there are one or more than one entries removed from the specified map.E
- the eE extends Exception
public static <K,V,E extends Exception> boolean removeIfValue(Map<K,V> map, Try.Predicate<? super V,E> filter) throws E extends Exception
map
by the the specified filter
.K
- the key typeV
- the value typeE
- map
- filter
- true
if there are one or more than one entries removed from the specified map.E
- the eE extends Exception
public static <K,V> boolean replace(Map<K,V> map, K key, V oldValue, V newValue)
K
- the key typeV
- the value typemap
- key
- oldValue
- newValue
- public static <K,V> V replace(Map<K,V> map, K key, V newValue)
K
- the key typeV
- the value typemap
- key
- newValue
- public static <K,V,E extends Exception> void replaceAll(Map<K,V> map, Try.BiFunction<? super K,? super V,? extends V,E> function) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- function
- E
- the eE extends Exception
public static <K,V,E extends Exception> void forEach(Map<K,V> map, Try.BiConsumer<? super K,? super V,E> action) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- action
- E
- the eE extends Exception
public static <K,V,E extends Exception> Map<K,V> filter(Map<K,V> map, Try.BiPredicate<? super K,? super V,E> predicate) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- predicate
- E
- the eE extends Exception
public static <K,V,E extends Exception> Map<K,V> filterByKey(Map<K,V> map, Try.Predicate<? super K,E> predicate) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- predicate
- E
- the eE extends Exception
public static <K,V,E extends Exception> Map<K,V> filterByValue(Map<K,V> map, Try.Predicate<? super V,E> predicate) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- predicate
- E
- the eE extends Exception
public static <K,V> Map<V,K> invert(Map<K,V> map)
K
- the key typeV
- the value typemap
- Multimap#invertFrom(Map, com.landawn.abacus.util.function.Supplier)
,
ListMultimap.invertFrom(Map)
,
ListMultimap.invertFrom(Map)
public static <K,V,E extends Exception> Map<V,K> invert(Map<K,V> map, Try.BinaryOperator<K,E> mergeOp) throws E extends Exception
K
- the key typeV
- the value typeE
- map
- mergeOp
- E
- the eE extends Exception
public static <K,V> Map<V,List<K>> flatInvert(Map<K,? extends Collection<? extends V>> map)
K
- the key typeV
- the value typemap
- Multimap#flatInvertFrom(Map, com.landawn.abacus.util.function.Supplier)
,
ListMultimap.flatInvertFrom(Map)
,
SetMultimap.flatInvertFrom(Map)
public static <T> T map2Entity(Class<T> targetClass, Map<String,Object> m)
T
- targetClass
- m
- public static <T> T map2Entity(Class<T> targetClass, Map<String,Object> m, boolean ignoreNullProperty, boolean ignoreUnknownProperty)
T
- targetClass
- m
- ignoreNullProperty
- ignoreUnknownProperty
- public static <T> T map2Entity(Class<T> targetClass, Map<String,Object> m, Collection<String> selectPropNames)
T
- targetClass
- m
- selectPropNames
- public static <T> List<T> map2Entity(Class<T> targetClass, Collection<Map<String,Object>> mList)
T
- targetClass
- mList
- public static <T> List<T> map2Entity(Class<T> targetClass, Collection<Map<String,Object>> mList, boolean igoreNullProperty, boolean ignoreUnknownProperty)
T
- targetClass
- mList
- igoreNullProperty
- ignoreUnknownProperty
- public static <T> List<T> map2Entity(Class<T> targetClass, Collection<Map<String,Object>> mList, Collection<String> selectPropNames)
T
- targetClass
- mList
- selectPropNames
- public static Map<String,Object> entity2Map(Object entity)
entity
- public static Map<String,Object> entity2Map(Object entity, boolean ignoreNullProperty)
entity
- ignoreNullProperty
- public static Map<String,Object> entity2Map(Object entity, Collection<String> ignoredPropNames)
entity
- ignoredPropNames
- public static Map<String,Object> entity2Map(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entity
- ignoreNullProperty
- ignoredPropNames
- public static Map<String,Object> entity2Map(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static <M extends Map<String,Object>> M entity2Map(Object entity, Supplier<? extends M> mapSupplier)
M
- entity
- mapSupplier
- public static <M extends Map<String,Object>> M entity2Map(M resultMap, Object entity)
M
- resultMap
- entity
- public static <M extends Map<String,Object>> M entity2Map(M resultMap, Object entity, boolean ignoreNullProperty)
M
- resultMap
- entity
- ignoreNullProperty
- public static <M extends Map<String,Object>> M entity2Map(M resultMap, Object entity, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoredPropNames
- public static <M extends Map<String,Object>> M entity2Map(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- public static <M extends Map<String,Object>> M entity2Map(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static List<Map<String,Object>> entity2Map(Collection<?> entityList)
entityList
- public static List<Map<String,Object>> entity2Map(Collection<?> entityList, boolean ignoreNullProperty)
entityList
- ignoreNullProperty
- public static List<Map<String,Object>> entity2Map(Collection<?> entityList, Collection<String> ignoredPropNames)
entityList
- ignoredPropNames
- public static List<Map<String,Object>> entity2Map(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entityList
- ignoreNullProperty
- ignoredPropNames
- public static List<Map<String,Object>> entity2Map(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entityList
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static Map<String,Object> deepEntity2Map(Object entity)
entity
- public static Map<String,Object> deepEntity2Map(Object entity, boolean ignoreNullProperty)
entity
- ignoreNullProperty
- public static Map<String,Object> deepEntity2Map(Object entity, Collection<String> ignoredPropNames)
entity
- ignoredPropNames
- public static Map<String,Object> deepEntity2Map(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entity
- ignoreNullProperty
- ignoredPropNames
- public static Map<String,Object> deepEntity2Map(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static <M extends Map<String,Object>> M deepEntity2Map(Object entity, Supplier<? extends M> mapSupplier)
M
- entity
- mapSupplier
- public static <M extends Map<String,Object>> M deepEntity2Map(M resultMap, Object entity)
M
- resultMap
- entity
- public static <M extends Map<String,Object>> M deepEntity2Map(M resultMap, Object entity, boolean ignoreNullProperty)
M
- resultMap
- entity
- ignoreNullProperty
- public static <M extends Map<String,Object>> M deepEntity2Map(M resultMap, Object entity, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoredPropNames
- public static <M extends Map<String,Object>> M deepEntity2Map(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- public static <M extends Map<String,Object>> M deepEntity2Map(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static List<Map<String,Object>> deepEntity2Map(Collection<?> entityList)
entityList
- public static List<Map<String,Object>> deepEntity2Map(Collection<?> entityList, boolean ignoreNullProperty)
entityList
- ignoreNullProperty
- public static List<Map<String,Object>> deepEntity2Map(Collection<?> entityList, Collection<String> ignoredPropNames)
entityList
- ignoredPropNames
- public static List<Map<String,Object>> deepEntity2Map(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entityList
- ignoreNullProperty
- ignoredPropNames
- public static List<Map<String,Object>> deepEntity2Map(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entityList
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static Map<String,Object> entity2FlatMap(Object entity)
entity
- public static Map<String,Object> entity2FlatMap(Object entity, boolean ignoreNullProperty)
entity
- ignoreNullProperty
- public static Map<String,Object> entity2FlatMap(Object entity, Collection<String> ignoredPropNames)
entity
- ignoredPropNames
- public static Map<String,Object> entity2FlatMap(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entity
- ignoreNullProperty
- ignoredPropNames
- public static Map<String,Object> entity2FlatMap(Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static <M extends Map<String,Object>> M entity2FlatMap(Object entity, Supplier<? extends M> mapSupplier)
M
- entity
- mapSupplier
- public static <M extends Map<String,Object>> M entity2FlatMap(M resultMap, Object entity)
M
- resultMap
- entity
- public static <M extends Map<String,Object>> M entity2FlatMap(M resultMap, Object entity, boolean ignoreNullProperty)
M
- resultMap
- entity
- ignoreNullProperty
- public static <M extends Map<String,Object>> M entity2FlatMap(M resultMap, Object entity, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoredPropNames
- public static <M extends Map<String,Object>> M entity2FlatMap(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- public static <M extends Map<String,Object>> M entity2FlatMap(M resultMap, Object entity, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
M
- resultMap
- entity
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static List<Map<String,Object>> entity2FlatMap(Collection<?> entityList)
entityList
- public static List<Map<String,Object>> entity2FlatMap(Collection<?> entityList, boolean ignoreNullProperty)
entityList
- ignoreNullProperty
- public static List<Map<String,Object>> entity2FlatMap(Collection<?> entityList, Collection<String> ignoredPropNames)
entityList
- ignoredPropNames
- public static List<Map<String,Object>> entity2FlatMap(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames)
entityList
- ignoreNullProperty
- ignoredPropNames
- public static List<Map<String,Object>> entity2FlatMap(Collection<?> entityList, boolean ignoreNullProperty, Collection<String> ignoredPropNames, NamingPolicy keyNamingPolicy)
entityList
- ignoreNullProperty
- ignoredPropNames
- keyNamingPolicy
- public static <M extends Map<String,Object>> M flatten(Map<String,Object> map, Supplier<? extends M> mapSupplier)
M
- map
- mapSupplier
- public static <M extends Map<String,Object>> M flatten(Map<String,Object> map, String delimiter, Supplier<? extends M> mapSupplier)
M
- map
- delimiter
- mapSupplier
- public static Map<String,Object> unflatten(Map<String,Object> map)
map
- public static <M extends Map<String,Object>> M unflatten(Map<String,Object> map, Supplier<? extends M> mapSupplier)
M
- map
- mapSupplier
- Copyright © 2019. All rights reserved.