public class FinalMap<T1 extends Comparable,T2> extends TreeMap<T1,T2>
FinalMap<String,Integer> f=new FinalMap(
"a",1,
"b",2,
"c",3);
System.out.println(f.get("b"));
--> 2
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FinalMap(Object... a)
Constructs a FinalMap from an array that contains key/value sequences
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Test routine
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removeCopyright © 2018. All rights reserved.