com.sun.xml.stream.dtd.nonvalidating
Class DTDGrammar.QNameHashtable
java.lang.Object
com.sun.xml.stream.dtd.nonvalidating.DTDGrammar.QNameHashtable
- Enclosing class:
- DTDGrammar
protected static final class DTDGrammar.QNameHashtable
- extends java.lang.Object
A simple Hashtable implementation that takes a tuple (String, String)
as the key and a int as value.
- Author:
- Eric Ye, IBM, Andy Clark, IBM
Method Summary |
int |
get(java.lang.String key)
Returns the value associated with the specified key tuple. |
protected int |
hash(java.lang.String symbol)
Returns a hash value for the specified symbol. |
void |
put(java.lang.String key,
int value)
Associates the given value with the specified key tuple. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNIQUE_STRINGS
public static final boolean UNIQUE_STRINGS
- See Also:
- Constant Field Values
DTDGrammar.QNameHashtable
protected DTDGrammar.QNameHashtable()
put
public void put(java.lang.String key,
int value)
- Associates the given value with the specified key tuple.
get
public int get(java.lang.String key)
- Returns the value associated with the specified key tuple.
hash
protected int hash(java.lang.String symbol)
- Returns a hash value for the specified symbol.
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.