Package com.mastfrog.graph
Class PairSet
- java.lang.Object
-
- com.mastfrog.graph.PairSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPairSet.ObjectPairSet<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PairSetadd(int x, int y)booleancontains(int x, int y)PairSetcopy()booleanequals(Object obj)intforEach(IntBiConsumer bi)static PairSetfromIntArray(int[][] ints)inthashCode()booleanintersects(PairSet other)PairSetinverse()booleanisEmpty()Iterator<int[]>iterator()intpairCount()PairSetremove(int x, int y)PairSetremovingAll(PairSet other)PairSetretainAll(PairSet other)intsize()IntGraphtoGraph()<T> PairSet.ObjectPairSet<T>toObjectPairSet(IndexedResolvable<T> indexed)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
fromIntArray
public static PairSet fromIntArray(int[][] ints)
-
isEmpty
public boolean isEmpty()
-
pairCount
public int pairCount()
-
copy
public PairSet copy()
-
inverse
public PairSet inverse()
-
size
public int size()
-
add
public PairSet add(int x, int y)
-
remove
public PairSet remove(int x, int y)
-
intersects
public boolean intersects(PairSet other)
-
contains
public boolean contains(int x, int y)
-
toGraph
public IntGraph toGraph()
-
toObjectPairSet
public <T> PairSet.ObjectPairSet<T> toObjectPairSet(IndexedResolvable<T> indexed)
-
forEach
public int forEach(IntBiConsumer bi)
-
-