|
||||||||||
| 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.HashMap<java.lang.Object,java.lang.Object>
org.millscript.millscript.datatypes.HashMapWithDefault
EHashMap.
@Deprecated public class HashMapWithDefault
This interface provides a version of the usual HashMap that
includes a notion of a default which can be exploited by the MillScript
index operator.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
HashMapWithDefault()
Deprecated. Constructs a new empty hash map with default, using the default capacity and load factor. |
|
HashMapWithDefault(int c)
Deprecated. Constructs a new empty hash map with default, using the specified capacity and default load factor. |
|
HashMapWithDefault(int c,
float f)
Deprecated. Constructs a new empty hash map with default, using the specified capacity and load factor. |
|
HashMapWithDefault(java.util.Map<?,?> t)
Deprecated. Constructs a new hash map with default, which will have the same mappings as the specified map. |
|
| 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.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, 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 HashMapWithDefault()
public HashMapWithDefault(int c)
c - the initial capacity
public HashMapWithDefault(int c,
float f)
c - the initial capacityf - the load factorpublic HashMapWithDefault(java.util.Map<?,?> t)
t - 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 | |||||||||