cz.cuni.jagrlib.piece
Class VEFDS.MapAttr

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<VEFDS.AttrKey,VEFDS.Attribute>
          extended by cz.cuni.jagrlib.piece.VEFDS.MapAttr
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<VEFDS.AttrKey,VEFDS.Attribute>
Enclosing class:
VEFDS

protected static class VEFDS.MapAttr
extends java.util.HashMap<VEFDS.AttrKey,VEFDS.Attribute>

Support class - attribute map.

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>
 
Field Summary
protected static VEFDS.AttrKey key
          Global attribute key (used for fast lookup).
 
Constructor Summary
protected VEFDS.MapAttr()
           
 
Method Summary
 VEFDS.Attribute get(int where, int ctx, java.lang.String ident)
          Fast attribute lookup (doesn't need to create new VEFDS.AttrKey instance).
 VEFDS.Attribute getExt(int where, int ctx, java.lang.String ident)
          Fast attribute lookup, tries shared attribute as well.
 void put(VEFDS.Attribute a)
          Convenient put method.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, 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
 

Field Detail

key

protected static final VEFDS.AttrKey key
Global attribute key (used for fast lookup).

Constructor Detail

VEFDS.MapAttr

protected VEFDS.MapAttr()
Method Detail

get

public final VEFDS.Attribute get(int where,
                                 int ctx,
                                 java.lang.String ident)
Fast attribute lookup (doesn't need to create new VEFDS.AttrKey instance).


getExt

public final VEFDS.Attribute getExt(int where,
                                    int ctx,
                                    java.lang.String ident)
Fast attribute lookup, tries shared attribute as well.


put

public final void put(VEFDS.Attribute a)
Convenient put method.