public class TargetSetIterator extends java.lang.Object implements TwoWayIterator<HGHandle>
An iterator over the target set of a given link.
Constructor and Description |
---|
TargetSetIterator(HGLink link) |
public TargetSetIterator(HGLink link)
public boolean hasNext()
hasNext
in interface java.util.Iterator<HGHandle>
public boolean hasPrev()
TwoWayIterator
Return true
if there is a previous element in the current
iteration state and false
otherwise. After the iterator
has been initialized, the value of hasPrev
will always be
false
.
hasPrev
in interface TwoWayIterator<HGHandle>
public HGHandle prev()
TwoWayIterator
Returns the previous element in this iteration.
prev
in interface TwoWayIterator<HGHandle>
public void remove()
remove
in interface java.util.Iterator<HGHandle>