javatools.datatypes
Class FinalMap<T1 extends java.lang.Comparable,T2>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<T1,T2>
          extended by javatools.datatypes.FinalMap<T1,T2>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<T1,T2>, java.util.NavigableMap<T1,T2>, java.util.SortedMap<T1,T2>

public class FinalMap<T1 extends java.lang.Comparable,T2>
extends java.util.TreeMap<T1,T2>

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga). Provides a nicer constructor for a TreeMap. Example:

   FinalMap f=new FinalMap(
     "a",1,
     "b",2,
     "c",3);
   System.out.println(f.get("b"));
   --> 2

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
FinalMap(java.lang.Object... a)
          Constructs a FinalMap from an array that contains key/value sequences
 
Method Summary
static void main(java.lang.String[] args)
          Test routine
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

FinalMap

public FinalMap(java.lang.Object... a)
Constructs a FinalMap from an array that contains key/value sequences

Method Detail

main

public static void main(java.lang.String[] args)
Test routine