edu.stanford.smi.protege.util
Class MultiMap
java.lang.Object
edu.stanford.smi.protege.util.MultiMap
- Direct Known Subclasses:
- ListMultiMap, SetMultiMap
- public abstract class MultiMap
- extends Object
Abstract implementation of a "multimap" (a map from a key to a collection of values). This inteface leaves unspecified
the type of collection that contains the values. The collection type is then specified in the derived classes.
- Author:
- Ray Fergerson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiMap
public MultiMap()
MultiMap
public MultiMap(int initSize)
addValue
public void addValue(Object key,
Object value)
addValues
public void addValues(Object key,
Collection values)
createCollection
public abstract Collection createCollection()
getKeys
public Collection getKeys()
getValues
public Collection getValues(Object key)
removeKey
public Collection removeKey(Object key)
removeValue
public void removeValue(Object key,
Object value)
removeValues
public void removeValues(Object key,
Collection values)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.