org.primefaces.extensions.component.importconstants
Class ConstantsHashMap<TK,TV>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<TK,TV>
          extended by org.primefaces.extensions.component.importconstants.ConstantsHashMap<TK,TV>
Type Parameters:
TK - The key type.
TV - The value type.
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<TK,TV>

public class ConstantsHashMap<TK,TV>
extends java.util.HashMap<TK,TV>

Custom HashMap which throws an FacesException if the key/constant does not exist.

Since:
0.6
Version:
$Revision: $
Author:
Thomas Andraschko / last modified by $Author: $
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
ConstantsHashMap(java.lang.Class<?> clazz)
          Default constructor.
 
Method Summary
 TV get(java.lang.Object key)
          
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, 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
equals, hashCode
 

Constructor Detail

ConstantsHashMap

public ConstantsHashMap(java.lang.Class<?> clazz)
Default constructor.

Parameters:
clazz - The class.
Method Detail

get

public TV get(java.lang.Object key)

Specified by:
get in interface java.util.Map<TK,TV>
Overrides:
get in class java.util.HashMap<TK,TV>


Copyright © 2011-2013. All Rights Reserved.