Package generic.stl
Class ReverseSetIterator<T>
- java.lang.Object
-
- generic.stl.SetIterator<T>
-
- generic.stl.ReverseSetIterator<T>
-
- All Implemented Interfaces:
IteratorSTL<T>
public class ReverseSetIterator<T> extends SetIterator<T>
-
-
Field Summary
-
Fields inherited from class generic.stl.SetIterator
erased, node, tree
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IteratorSTL<T>
copy()
Creates a copy of this iterator.IteratorSTL<T>
decrement()
Devance the iterator to the previous position.void
delete()
boolean
equals(java.lang.Object obj)
int
hashCode()
IteratorSTL<T>
increment()
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 Detail
-
copy
public IteratorSTL<T> 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
public IteratorSTL<T> 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
public IteratorSTL<T> 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
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSetIterator<T>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSetIterator<T>
-
-