org.thymeleaf.context
Class VariablesMap<K,V>
Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
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
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
VariablesMap
public VariablesMap()
VariablesMap
public VariablesMap(int initialCapacity,
float loadFactor)
VariablesMap
public VariablesMap(int initialCapacity)
VariablesMap
public VariablesMap(Map<? extends K,? extends V> m)
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 © 2014 The THYMELEAF team. All Rights Reserved.