org.apache.xerces.impl.dtd
Class DTDGrammar.QNameHashtable
java.lang.Object
org.apache.xerces.impl.dtd.DTDGrammar.QNameHashtable
- 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.
- Eric Ye, IBM
- Andy Clark, IBM
int | get(String key) - Returns the value associated with the specified key tuple.
|
protected int | hash(String symbol) - Returns a hash value for the specified symbol.
|
void | put(String key, int value) - Associates the given value with the specified key tuple.
|
UNIQUE_STRINGS
public static final boolean UNIQUE_STRINGS
- true
get
public int get(String key)
Returns the value associated with the specified key tuple.
hash
protected int hash(String symbol)
Returns a hash value for the specified symbol.
put
public void put(String key,
int value)
Associates the given value with the specified key tuple.
Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.