org.millscript.millscript.datatypes
Interface MapWithDefault<K,V>

All Superinterfaces:
java.util.Map<K,V>
All Known Implementing Classes:
HashMapWithDefault, LinkedHashMapWithDefault, NullMapWithDefault, TreeMapWithDefault, WeakHashMapWithDefault

Deprecated. As of MillScript 10.2.0, this functionallity has been subsumed by the MillScript-Util project and it's Map API, see IMap.

@Deprecated
public interface MapWithDefault<K,V>
extends java.util.Map<K,V>

This interface provides a version of the usual Map 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>
 
Method Summary
 java.lang.Object getDefault()
          Deprecated. Returns the default value for this map.
 void setDefault(java.lang.Object def)
          Deprecated. Sets the default value for this map to the specified value.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getDefault

java.lang.Object getDefault()
Deprecated. 
Returns the default value for this map.

Returns:
the default value for this map.

setDefault

void setDefault(java.lang.Object def)
Deprecated. 
Sets the default value for this map to the specified value.

Parameters:
def - the new default value for this map.


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.