opennlp.grok.util
Class GroupMap

java.lang.Object
  |
  +--gnu.trove.THash
        |
        +--gnu.trove.TObjectHash
              |
              +--gnu.trove.THashMap
                    |
                    +--opennlp.grok.util.GroupMap
All Implemented Interfaces:
java.util.Map, java.io.Serializable, gnu.trove.TObjectHashingStrategy

public class GroupMap
extends gnu.trove.THashMap

A map where putting a value does not replace an old value but is rather included in a group of values for that one key.

Version:
$Revision: 1.3 $, $Date: 2002/08/02 17:12:13 $
Author:
Gann Bierner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gnu.trove.THashMap
_values
 
Fields inherited from class gnu.trove.TObjectHash
_set, REMOVED
 
Fields inherited from class gnu.trove.THash
_free, _loadFactor, _maxSize, _size, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
 
Constructor Summary
GroupMap()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object putAll(java.lang.Object key, java.util.Collection vals)
           
 
Methods inherited from class gnu.trove.THashMap
clear, containsKey, containsValue, entrySet, equals, forEachEntry, forEachKey, forEachValue, keySet, putAll, rehash, remove, removeAt, retainEntries, setUp, transformValues, values
 
Methods inherited from class gnu.trove.TObjectHash
capacity, computeHashCode, contains, equals, forEach, index, insertionIndex
 
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
 
Methods inherited from interface java.util.Map
hashCode, isEmpty, size
 

Constructor Detail

GroupMap

public GroupMap()
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class gnu.trove.THashMap

putAll

public java.lang.Object putAll(java.lang.Object key,
                               java.util.Collection vals)

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class gnu.trove.THashMap


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