Package generic.stl
Class ReverseMapIteratorSTL<K,V>
java.lang.Object
generic.stl.MapIteratorSTL<K,V>
generic.stl.ReverseMapIteratorSTL<K,V>
- All Implemented Interfaces:
IteratorSTL<Pair<K,V>>
-
Field Summary
Fields inherited from class generic.stl.MapIteratorSTL
erased, node, tree -
Method Summary
Modifier and TypeMethodDescriptionIteratorSTL<Pair<K, V>> copy()Creates a copy of this iterator.IteratorSTL<Pair<K, V>> Devance the iterator to the previous position.voiddelete()voiddelete(int count) booleanIteratorSTL<Pair<K, V>> Advances the iterator to the next position.voidInserts the given value at the current position (the current value will be pushed to the next value).booleanisBegin()Returns true if the iterator is positioned on the first element of the collection.
-
Method Details
-
increment
Description copied from interface:IteratorSTLAdvances the iterator to the next position.- Specified by:
incrementin interfaceIteratorSTL<K>- Overrides:
incrementin classMapIteratorSTL<K,V> - 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<K>- Overrides:
decrementin classMapIteratorSTL<K,V> - Returns:
- a reference to the iterator itself
-
delete
public void delete() -
delete
public void delete(int count) -
insert
Description copied from interface:IteratorSTLInserts the given value at the current position (the current value will be pushed to the next value). The iterator will be positioned on the new value.- Specified by:
insertin interfaceIteratorSTL<K>- Overrides:
insertin classMapIteratorSTL<K,V> - Parameters:
value- the value to insert into the collection.
-
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<K>- Overrides:
isBeginin classMapIteratorSTL<K,V> - Returns:
- true if the iterator is positioned on the first element of the collection.
-
copy
Description copied from interface:IteratorSTLCreates a copy of this iterator.- Specified by:
copyin interfaceIteratorSTL<K>- Overrides:
copyin classMapIteratorSTL<K,V> - Returns:
- a copy of this iterator.
-
equals
- Overrides:
equalsin classMapIteratorSTL<K,V>
-