Class AbstractLinkedMap.LinkIterator<K,V> 
java.lang.Object
org.apache.commons.collections4.map.AbstractLinkedMap.LinkIterator<K,V> 
- Type Parameters:
- K- the key type.
- V- the value type.
- Direct Known Subclasses:
- AbstractLinkedMap.EntrySetIterator,- AbstractLinkedMap.KeySetIterator,- AbstractLinkedMap.LinkMapIterator,- AbstractLinkedMap.ValuesIterator
- Enclosing class:
- AbstractLinkedMap<K,- V> 
Base Iterator that iterates in link order.
- Since:
- 3.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected intThe modification count expectedprotected AbstractLinkedMap.LinkEntry<K, V> The current (last returned) entryprotected AbstractLinkedMap.LinkEntry<K, V> The next entryprotected final AbstractLinkedMap<K, V> The parent map
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLinkIterator(AbstractLinkedMap<K, V> parent) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected AbstractLinkedMap.LinkEntry<K, V> Gets the current entry.booleanhasNext()Tests whether there is another entry.booleanTests whether there is a previous entry.protected AbstractLinkedMap.LinkEntry<K, V> Gets the next entry.protected AbstractLinkedMap.LinkEntry<K, V> Gets the previous entry.voidremove()Removes the current entry.voidreset()Resets the state to the end.toString()
- 
Field Details- 
parentThe parent map
- 
lastThe current (last returned) entry
- 
nextThe next entry
- 
expectedModCountThe modification count expected
 
- 
- 
Constructor Details- 
LinkIteratorConstructs a new instance.- Parameters:
- parent- The parent AbstractLinkedMap.
 
 
- 
- 
Method Details- 
currentEntryGets the current entry.- Returns:
- the current entry.
 
- 
hasNextTests whether there is another entry.- Returns:
- whether there is another entry.
 
- 
hasPreviousTests whether there is a previous entry.- Returns:
- whether there is a previous entry.
 
- 
nextEntryGets the next entry.- Returns:
- the next entry.
 
- 
previousEntryGets the previous entry.- Returns:
- the previous entry.
 
- 
removeRemoves the current entry.
- 
resetResets the state to the end.
- 
toString
 
-