org.thymeleaf.context
Class VariablesMap<K,V>

Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by org.thymeleaf.context.VariablesMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class VariablesMap<K,V>
extends HashMap<K,V>

Special implementation of the Map interface that will be used for containing context variables in IContext implementations.

Constructors in this class mimic those in HashMap and have the same meaning.

Since:
1.0
Author:
Daniel Fernández, Michal Kreuzman
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
VariablesMap()
           
VariablesMap(int initialCapacity)
           
VariablesMap(int initialCapacity, float loadFactor)
           
VariablesMap(Map<? extends K,? extends V> m)
           
 
Method Summary
 V get(Object key)
           
 List<IContextVariableRestriction> getRestrictions()
           
 void setRestrictions(List<IContextVariableRestriction> restrictions)
           
 
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 Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

VariablesMap

public VariablesMap()

VariablesMap

public VariablesMap(int initialCapacity,
                    float loadFactor)

VariablesMap

public VariablesMap(int initialCapacity)

VariablesMap

public VariablesMap(Map<? extends K,? extends V> m)
Method Detail

getRestrictions

public List<IContextVariableRestriction> getRestrictions()

setRestrictions

public void setRestrictions(List<IContextVariableRestriction> restrictions)

get

public V get(Object key)
Specified by:
get in interface Map<K,V>
Overrides:
get in class HashMap<K,V>


Copyright © 2013 The THYMELEAF team. All Rights Reserved.