opennlp.grok.util
Class IntHashSetMap

java.lang.Object
  |
  +--gnu.trove.THash
        |
        +--gnu.trove.TPrimitiveHash
              |
              +--gnu.trove.TIntHash
                    |
                    +--gnu.trove.TIntObjectHashMap
                          |
                          +--opennlp.grok.util.IntHashSetMap
All Implemented Interfaces:
java.io.Serializable, gnu.trove.TIntHashingStrategy

public class IntHashSetMap
extends gnu.trove.TIntObjectHashMap

A map from ints to HashSets which allows objects with the same key to be added without overriding previous puts.

Version:
$Revision: 1.1 $, $Date: 2002/08/05 13:44:42 $
Author:
Jason Baldridge
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gnu.trove.TIntObjectHashMap
_values
 
Fields inherited from class gnu.trove.TIntHash
_set
 
Fields inherited from class gnu.trove.TPrimitiveHash
_states, FREE, FULL, REMOVED
 
Fields inherited from class gnu.trove.THash
_free, _loadFactor, _maxSize, _size, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
 
Constructor Summary
IntHashSetMap()
           
 
Method Summary
 java.lang.Object get(int key)
           
 java.lang.Object put(int key, java.lang.Object value)
           
 
Methods inherited from class gnu.trove.TIntObjectHashMap
clear, containsKey, containsValue, equals, forEachEntry, forEachKey, forEachValue, getValues, keys, rehash, remove, removeAt, retainEntries, setUp, transformValues
 
Methods inherited from class gnu.trove.TIntHash
computeHashCode, contains, forEach, index, insertionIndex
 
Methods inherited from class gnu.trove.TPrimitiveHash
capacity
 
Methods inherited from class gnu.trove.THash
compact, ensureCapacity, isEmpty, postInsertHook, size, trimToSize
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntHashSetMap

public IntHashSetMap()
Method Detail

put

public java.lang.Object put(int key,
                            java.lang.Object value)
Overrides:
put in class gnu.trove.TIntObjectHashMap

get

public java.lang.Object get(int key)
Overrides:
get in class gnu.trove.TIntObjectHashMap


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.