|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.util.defaults.ConstantMapDefault<K,V>
public class ConstantMapDefault<K,V>
The class provides a default implementation which returns a constant value.
| Constructor Summary | |
|---|---|
ConstantMapDefault(V def)
Constructs a new constant default object which will use the specified default value. |
|
| Method Summary | |
|---|---|
V |
get(IMap<K,V> map,
K key)
Returns the value to use when the specified key is not valid in the for the mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantMapDefault(V def)
def - the default value| Method Detail |
|---|
public V get(IMap<K,V> map,
K key)
IMapDefault
get in interface IMapDefault<K,V>map - the map which requested the default value for the given keykey - the key that is not valid for the mapping
org.millscript.commons.util.IMapDefault#get(IMap, K)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||