Package candidate.core
Class CandidateSet
- All Implemented Interfaces:
Iterable<Integer>,Collection<Integer>,Set<Integer>,SortedSet<Integer>
- Author:
- Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Method Summary
Modifier and TypeMethodDescriptionComparator<? super Integer>static CandidateSetstatic CandidateSetstatic CandidateSetcreateCandidatesFromBits(int bits)static CandidateSetcreateSingleCandidate(int candidate)first()iterator()last()static intbooleanintsize()Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArrayMethods inherited from interface java.util.SortedSet
spliterator
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Integer>- Specified by:
sizein interfaceSet<Integer>- Specified by:
sizein classAbstractCollection<Integer>
-
remove
- Specified by:
removein interfaceCollection<Integer>- Specified by:
removein interfaceSet<Integer>- Overrides:
removein classAbstractCollection<Integer>
-
iterator
-
comparator
- Specified by:
comparatorin interfaceSortedSet<Integer>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-
createAllCandidates
-
createSingleCandidate
-
copyOf
-
createCandidatesFromBits
-
pack
-