public class MyTreeMap
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.TreeMap<K,V> |
createMap(java.util.Collection<java.util.Map.Entry<K,V>> entrySet)
Returns a Map that holds the entries from entrySet.
|
static <K,V> java.util.TreeMap<K,V> |
createMap(java.util.Map.Entry<K,V>... entrySet)
Returns a Map that holds the entries from entrySet.
|
public static <K,V> java.util.TreeMap<K,V> createMap(java.util.Collection<java.util.Map.Entry<K,V>> entrySet)
K - the key typeV - the value typeentrySet - The set of entries to initialize the map with@SafeVarargs public static <K,V> java.util.TreeMap<K,V> createMap(java.util.Map.Entry<K,V>... entrySet)
K - the key typeV - the value typeentrySet - The set of entries to initialize the map with