java.lang.Object | |
↳ | org.apache.commons.collections.iterators.AbstractOrderedMapIteratorDecorator |
Provides basic behaviour for decorating an ordered map iterator with extra functionality.
All methods are forwarded to the decorated map iterator.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
iterator | The iterator being decorated |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor that decorates the specified iterator.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the current key, which is the key returned by the last call
to
next() . | |||||||||||
Gets the current value, which is the value associated with the last key
returned by
next() . | |||||||||||
Checks to see if there are more entries still to be iterated.
| |||||||||||
Checks to see if there is a previous entry that can be iterated to.
| |||||||||||
Gets the next key from the
Map . | |||||||||||
Gets the previous key from the
Map . | |||||||||||
Removes the last returned key from the underlying
Map (optional operation). | |||||||||||
Sets the value associated with the current key (optional operation).
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the iterator being decorated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructor that decorates the specified iterator.
iterator | the iterator to decorate, must not be null |
---|
IllegalArgumentException | if the collection is null |
---|
Gets the current key, which is the key returned by the last call
to next()
.
Gets the current value, which is the value associated with the last key
returned by next()
.
Checks to see if there are more entries still to be iterated.
true
if the iterator has more elements
Checks to see if there is a previous entry that can be iterated to.
true
if the iterator has a previous element
Gets the previous key from the Map
.
Removes the last returned key from the underlying Map
(optional operation).
This method can be called once per call to next()
.
Sets the value associated with the current key (optional operation).
obj | the new value |
---|
Gets the iterator being decorated.