Class StringKeysMap<V>

java.lang.Object
java.util.AbstractMap<String,V>
org.zkoss.web.servlet.xel.StringKeysMap<V>
All Implemented Interfaces:
Map<String,V>
Direct Known Subclasses:
AttributesMap, ParameterMap

public abstract class StringKeysMap<V> extends AbstractMap<String,V>
A skeletal implementation for Map to wrap something with enumeration of keys, which must be String.
Since:
3.0.0
Author:
tomyeh
  • Constructor Details

    • StringKeysMap

      public StringKeysMap()
  • Method Details

    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<String,V>
      Overrides:
      containsKey in class AbstractMap<String,V>
    • get

      public V get(Object key)
      Specified by:
      get in interface Map<String,V>
      Overrides:
      get in class AbstractMap<String,V>
    • getValue

      protected abstract V getValue(String key)
      Returns the value associated with the specified key.
    • getKeys

      protected abstract Enumeration<String> getKeys()
      Returns an enumeration of keys.
    • setValue

      protected abstract void setValue(String key, V value)
      Sets the value associated with the specified key.
    • removeValue

      protected abstract void removeValue(String key)
      Removes the specified key.