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>>
public class ReverseMapIteratorSTL<K,V> extends MapIteratorSTL<K,V>
-
-
Field Summary
-
Fields inherited from class generic.stl.MapIteratorSTL
erased, node, tree
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IteratorSTL<Pair<K,V>>copy()Creates a copy of this iterator.IteratorSTL<Pair<K,V>>decrement()Devance the iterator to the previous position.voiddelete()voiddelete(int count)booleanequals(java.lang.Object obj)IteratorSTL<Pair<K,V>>increment()Advances the iterator to the next position.voidinsert(Pair<K,V> value)Inserts 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 first element of the collection.
-
-
-
Method Detail
-
increment
public IteratorSTL<Pair<K,V>> 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
public IteratorSTL<Pair<K,V>> 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
public void insert(Pair<K,V> value)
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 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
public IteratorSTL<Pair<K,V>> 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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMapIteratorSTL<K,V>
-
-