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

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

protected static final class Grammar.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 Grammar.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

Grammar.TupleHashtable

protected Grammar.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.