org.apache.xerces.impl.dtd
Class AbstractDTDGrammar.TupleHashtable

java.lang.Object
  |
  +--org.apache.xerces.impl.dtd.AbstractDTDGrammar.TupleHashtable
Enclosing class:
AbstractDTDGrammar

protected static final class AbstractDTDGrammar.TupleHashtable
extends java.lang.Object

A simple Hashtable implementation that takes a tuple (int, String, String) as the key and a int as value.

Author:
Eric Ye, IBM, Andy Clark, IBM

Constructor Summary
protected AbstractDTDGrammar.TupleHashtable()
           
 
Method Summary
 int get(int key1, java.lang.String key2, java.lang.String key3)
          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(int key1, java.lang.String key2, java.lang.String key3, 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
 

Constructor Detail

AbstractDTDGrammar.TupleHashtable

protected AbstractDTDGrammar.TupleHashtable()
Method Detail

put

public void put(int key1,
                java.lang.String key2,
                java.lang.String key3,
                int value)
Associates the given value with the specified key tuple.

get

public int get(int key1,
               java.lang.String key2,
               java.lang.String key3)
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 © 1999-2001 Apache XML Project. All Rights Reserved.