randoop.util
Class DoubleKeyToSetMap<K1,K2,V>

Object
  extended by DoubleKeyToSetMap<K1,K2,V>

public final class DoubleKeyToSetMap<K1,K2,V>
extends Object

Map indexed with 2 keys.


Constructor Summary
Constructor and Description
DoubleKeyToSetMap()
           
 
Method Summary
Modifier and Type Method and Description
 boolean add(K1 k1, K2 k2, V v)
          Returns true if the doubly-nested set did not contain v.
 boolean addAll(K1 k1, K2 k2, Set<V> vs)
          Returns true if the doubly-nested set did not contain all of the vs.
 void clear()
           
 boolean containsKeys(K1 k1, K2 k2)
           
 Set<V> get(K1 k1, K2 k2)
           
 Set<V> getAllVs()
           
 Set<K1> getK1Set()
           
 Set<K2> getK2Set(K1 k1)
           
 boolean remove(K1 k1, K2 k2, V v)
          Returns true if the doubly-nested set contained v.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleKeyToSetMap

public DoubleKeyToSetMap()
Method Detail

getK1Set

public Set<K1> getK1Set()

getK2Set

public Set<K2> getK2Set(K1 k1)

containsKeys

public boolean containsKeys(K1 k1,
                            K2 k2)

get

public Set<V> get(K1 k1,
                  K2 k2)

add

public boolean add(K1 k1,
                   K2 k2,
                   V v)
Returns true if the doubly-nested set did not contain v.


remove

public boolean remove(K1 k1,
                      K2 k2,
                      V v)
Returns true if the doubly-nested set contained v.


addAll

public boolean addAll(K1 k1,
                      K2 k2,
                      Set<V> vs)
Returns true if the doubly-nested set did not contain all of the vs.


toString

public String toString()
Overrides:
toString in class Object

clear

public void clear()

getAllVs

public Set<V> getAllVs()