public class TwoDimensionalSet<K1,K2> extends Object implements Serializable, Iterable<Pair<K1,K2>>
Constructor and Description |
---|
TwoDimensionalSet() |
TwoDimensionalSet(TwoDimensionalMap<K1,K2,Boolean> backingMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K1 k1,
K2 k2) |
boolean |
addAll(TwoDimensionalSet<? extends K1,? extends K2> set) |
boolean |
addAllKeys(TwoDimensionalMap<? extends K1,? extends K2,?> map)
Adds all the keys in the given TwoDimensionalMap.
|
void |
clear() |
boolean |
contains(K1 k1,
K2 k2) |
boolean |
containsAll(TwoDimensionalSet<? extends K1,? extends K2> set) |
boolean |
equals(Object o) |
Set<K1> |
firstKeySet() |
int |
hashCode() |
static <K1,K2> TwoDimensionalSet<K1,K2> |
hashSet() |
boolean |
isEmpty() |
Iterator<Pair<K1,K2>> |
iterator()
Iterate over the map using the iterator and entry inner classes.
|
boolean |
remove(K1 k1,
K2 k2) |
boolean |
removeAll(TwoDimensionalSet<? extends K1,? extends K2> set) |
Set<K2> |
secondKeySet(K1 k1) |
int |
size() |
static <K1,K2> TwoDimensionalSet<K1,K2> |
treeSet() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TwoDimensionalSet()
public TwoDimensionalSet(TwoDimensionalMap<K1,K2,Boolean> backingMap)
public static <K1,K2> TwoDimensionalSet<K1,K2> treeSet()
public static <K1,K2> TwoDimensionalSet<K1,K2> hashSet()
public boolean addAll(TwoDimensionalSet<? extends K1,? extends K2> set)
public boolean addAllKeys(TwoDimensionalMap<? extends K1,? extends K2,?> map)
public void clear()
public boolean containsAll(TwoDimensionalSet<? extends K1,? extends K2> set)
public boolean isEmpty()
public boolean removeAll(TwoDimensionalSet<? extends K1,? extends K2> set)
public int size()