Protege 3.3.1

edu.stanford.smi.protege.util
Class SetMultiMap<X,Y>

java.lang.Object
  extended by edu.stanford.smi.protege.util.MultiMap<X,Y>
      extended by edu.stanford.smi.protege.util.SetMultiMap<X,Y>

public class SetMultiMap<X,Y>
extends MultiMap<X,Y>

Multimap implementation where the value collection is a set.

Author:
Ray Fergerson

Constructor Summary
SetMultiMap()
           
SetMultiMap(int size)
           
 
Method Summary
 Collection<Y> createCollection()
           
 Set<Y> getValues(X key)
           
 Set<Y> removeKey(X key)
           
 
Methods inherited from class edu.stanford.smi.protege.util.MultiMap
addValue, addValues, getKeys, removeValue, removeValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetMultiMap

public SetMultiMap()

SetMultiMap

public SetMultiMap(int size)
Method Detail

createCollection

public Collection<Y> createCollection()
Specified by:
createCollection in class MultiMap<X,Y>

getValues

public Set<Y> getValues(X key)
Overrides:
getValues in class MultiMap<X,Y>

removeKey

public Set<Y> removeKey(X key)
Overrides:
removeKey in class MultiMap<X,Y>

Protege 3.3.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2007 Stanford University.