|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<java.lang.Object,java.lang.Object>
org.millscript.millscript.datatypes.TreeMapWithDefault
EBinaryTreeMap.
@Deprecated public class TreeMapWithDefault
This interface provides a version of the usual TreeMap that
includes a notion of a default which can be exploited by the MillScript
index operator. Because the default compareTo's can throw
ClassCastExceptions we must take over the Comparator.
GeneralComparator,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
TreeMapWithDefault()
Deprecated. Constructs a new empty tree map with default, sorted using our default comparator. |
|
TreeMapWithDefault(java.util.Comparator<java.lang.Object> c)
Deprecated. Constructs a new empty tree map with default, sorted according to the specified comparator. |
|
TreeMapWithDefault(java.util.Map<?,?> m)
Deprecated. Constructs a new tree map with default, containing all the mappings in the specified map, sorted using our default comparator. |
|
TreeMapWithDefault(java.util.SortedMap<?,?> m)
Deprecated. Constructs a new tree map with default, containing all the mappings in the specified map, sorted using our default comparator. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getDefault()
Deprecated. Returns the default value for this map. |
void |
setDefault(java.lang.Object d)
Deprecated. Sets the default value for this map to the specified value. |
| Methods inherited from class java.util.TreeMap |
|---|
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, isEmpty, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public TreeMapWithDefault()
public TreeMapWithDefault(java.util.SortedMap<?,?> m)
m - the map to copy into this mappublic TreeMapWithDefault(java.util.Comparator<java.lang.Object> c)
c - the compartor to use for sorting this mappublic TreeMapWithDefault(java.util.Map<?,?> m)
m - the map to copy into this map| Method Detail |
|---|
public java.lang.Object getDefault()
MapWithDefault
getDefault in interface MapWithDefault<java.lang.Object,java.lang.Object>MapWithDefault.getDefault()public void setDefault(java.lang.Object d)
MapWithDefault
setDefault in interface MapWithDefault<java.lang.Object,java.lang.Object>d - the new default value for this map.MapWithDefault.setDefault(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||