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.void
delete()
boolean
int
hashCode()
Advances the iterator to the next position.boolean
isBegin()
Returns true if the iterator is positioned on the first first element of the collection.
-
Method Details
-
copy
Description copied from interface:IteratorSTL
Creates a copy of this iterator.- Specified by:
copy
in interfaceIteratorSTL<T>
- Overrides:
copy
in classSetIterator<T>
- Returns:
- a copy of this iterator.
-
increment
Description copied from interface:IteratorSTL
Advances the iterator to the next position.- Specified by:
increment
in interfaceIteratorSTL<T>
- Overrides:
increment
in classSetIterator<T>
- Returns:
- a reference to the iterator itself
-
decrement
Description copied from interface:IteratorSTL
Devance the iterator to the previous position. This method is only supported in bidirectional iterators.- Specified by:
decrement
in interfaceIteratorSTL<T>
- Overrides:
decrement
in classSetIterator<T>
- Returns:
- a reference to the iterator itself
-
delete
public void delete() -
isBegin
public boolean isBegin()Description copied from interface:IteratorSTL
Returns true if the iterator is positioned on the first first element of the collection. If the collection is empty, this will always return false.- Specified by:
isBegin
in interfaceIteratorSTL<T>
- Overrides:
isBegin
in classSetIterator<T>
- Returns:
- true if the iterator is positioned on the first element of the collection.
-
equals
- Overrides:
equals
in classSetIterator<T>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSetIterator<T>
-