public class CollectionUtils
extends Object
Constructor and Description |
---|
CollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
getKeyFromValue(Map<?,?> map,
Object value)
Gets the first key with the input value in the map.
|
static List<?> |
getKeys(Map<?,?> map)
Gets the list of keys from the map
|
static List<?> |
getKeysFromMap(Map<?,?> map,
Object value)
Gets the list of keys with the input value in the map.
|
static List<?> |
iterator2List(Iterator<?> iter)
Converts iterator to List
|
public static Object getKeyFromValue(Map<?,?> map, Object value)
map
- the input mapvalue
- the value somewhere in the mappublic static List<?> getKeys(Map<?,?> map)
map
- the input mappublic static List<?> getKeysFromMap(Map<?,?> map, Object value)
map
- the input mapvalue
- the value somewhere in the mappublic static List<?> iterator2List(Iterator<?> iter)
iter
- the input iteratorCopyright © 2010-2020 Toolsverse. All Rights Reserved.