Package generic.stl
Class ReverseSetIterator<T>
java.lang.Object
generic.stl.SetIterator<T>
generic.stl.ReverseSetIterator<T>
- All Implemented Interfaces:
IteratorSTL<T>
-
Field Summary
Fields inherited from class generic.stl.SetIterator
erased, node, tree -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this iterator.Devance the iterator to the previous position.voiddelete()booleaninthashCode()Advances the iterator to the next position.booleanisBegin()Returns true if the iterator is positioned on the first element of the collection.
-
Method Details
-
copy
Description copied from interface:IteratorSTLCreates a copy of this iterator.- Specified by:
copyin interfaceIteratorSTL<T>- Overrides:
copyin classSetIterator<T>- Returns:
- a copy of this iterator.
-
increment
Description copied from interface:IteratorSTLAdvances the iterator to the next position.- Specified by:
incrementin interfaceIteratorSTL<T>- Overrides:
incrementin classSetIterator<T>- Returns:
- a reference to the iterator itself
-
decrement
Description copied from interface:IteratorSTLDevance the iterator to the previous position. This method is only supported in bidirectional iterators.- Specified by:
decrementin interfaceIteratorSTL<T>- Overrides:
decrementin classSetIterator<T>- Returns:
- a reference to the iterator itself
-
delete
public void delete() -
isBegin
public boolean isBegin()Description copied from interface:IteratorSTLReturns true if the iterator is positioned on the first element of the collection. If the collection is empty, this will always return false.- Specified by:
isBeginin interfaceIteratorSTL<T>- Overrides:
isBeginin classSetIterator<T>- Returns:
- true if the iterator is positioned on the first element of the collection.
-
equals
- Overrides:
equalsin classSetIterator<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classSetIterator<T>
-