Protege-2000 1.7

edu.stanford.smi.protege.util
Class BidirectionalMultiMap

java.lang.Object
  |
  +--edu.stanford.smi.protege.util.BidirectionalMultiMap

public final class BidirectionalMultiMap
extends Object

Description of the class

Author:
Ray Fergerson

Constructor Summary
BidirectionalMultiMap(int startSize)
           
 
Method Summary
 void addValue(Object key, Object value)
           
 void addValue(Object key, Object value, int index)
           
 void addValues(Object key, Collection values)
           
 Collection getKeys()
           
 Collection getKeys(Object value)
           
 Object getValue(Object key)
           
 int getValueCount(Object key)
           
 List getValues(Object key)
           
 void moveValue(Object key, int fromIndex, int toIndex)
           
 void moveValue(Object key, Object value, int toIndex)
           
 void removeKey(Object key)
           
 void removeReferencesToValue(Object value)
           
 Object removeValue(Object key, int index)
           
 void removeValue(Object key, Object value)
           
 void replaceValue(Object key, int index, Object value)
           
 void replaceValue(Object key, Object from, Object to)
           
 void setValue(Object key, Object value)
          a null value is interpreted as an empty collection use "removeValue" if you want to get rid of the key
 void setValues(Object key, Collection values)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BidirectionalMultiMap

public BidirectionalMultiMap(int startSize)
Method Detail

addValue

public void addValue(Object key,
                     Object value)

addValue

public void addValue(Object key,
                     Object value,
                     int index)

addValues

public void addValues(Object key,
                      Collection values)

getKeys

public Collection getKeys()

getKeys

public Collection getKeys(Object value)

getValue

public Object getValue(Object key)

getValueCount

public int getValueCount(Object key)

getValues

public List getValues(Object key)

moveValue

public void moveValue(Object key,
                      int fromIndex,
                      int toIndex)

moveValue

public void moveValue(Object key,
                      Object value,
                      int toIndex)

removeKey

public void removeKey(Object key)

removeReferencesToValue

public void removeReferencesToValue(Object value)

removeValue

public Object removeValue(Object key,
                          int index)

removeValue

public void removeValue(Object key,
                        Object value)

replaceValue

public void replaceValue(Object key,
                         int index,
                         Object value)

replaceValue

public void replaceValue(Object key,
                         Object from,
                         Object to)

setValue

public void setValue(Object key,
                     Object value)
a null value is interpreted as an empty collection use "removeValue" if you want to get rid of the key
Parameters:
key - The new Value value
value - The new Value value

setValues

public void setValues(Object key,
                      Collection values)

toString

public String toString()
Overrides:
toString in class Object

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.