- All Implemented Interfaces:
Iterator<List<E>>
Zero-subset iterator.
-
-
Constructor Summary
Constructors
ZeroSubSetIterator constructor.
-
Method Summary
boolean
Test for availability of a next subset.
void
Remove the last subset returned from underlying set if allowed.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
hasNext
private boolean hasNext
data structure.
-
Constructor Details
-
ZeroSubSetIterator
public ZeroSubSetIterator(List<E> set)
ZeroSubSetIterator constructor.
- Parameters:
set
- generating set (ignored).
-
Method Details
-
hasNext
public boolean hasNext()
Test for availability of a next subset.
- Specified by:
hasNext
in interface Iterator<E>
- Returns:
- true if the iteration has more subsets, else false.
-
next
Get next subset.
- Specified by:
next
in interface Iterator<E>
- Returns:
- next subset.
-
remove
public void remove()
Remove the last subset returned from underlying set if allowed.
- Specified by:
remove
in interface Iterator<E>