it.unimi.dsi.fastutil.chars
Class AbstractChar2BooleanSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.chars.AbstractCharIterator
it.unimi.dsi.fastutil.chars.AbstractCharBidirectionalIterator
it.unimi.dsi.fastutil.chars.AbstractChar2BooleanSortedMap.KeySetIterator
- All Implemented Interfaces:
- BidirectionalIterator<Character>, CharBidirectionalIterator, CharIterator, ObjectBidirectionalIterator<Character>, ObjectIterator<Character>, Iterator<Character>
- Enclosing class:
- AbstractChar2BooleanSortedMap
protected static class AbstractChar2BooleanSortedMap.KeySetIterator
- extends AbstractCharBidirectionalIterator
A wrapper exhibiting a map iterator as an iterator on keys.
To provide an iterator on keys, just create an instance of this
class using the corresponding iterator on entries.
Method Summary |
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
char |
nextChar()
Delegates to the corresponding generic method. |
char |
previousChar()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ObjectBidirectionalIterator<Map.Entry<Character,Boolean>> i
AbstractChar2BooleanSortedMap.KeySetIterator
public AbstractChar2BooleanSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Character,Boolean>> i)
nextChar
public char nextChar()
- Description copied from class:
AbstractCharIterator
- Delegates to the corresponding generic method.
- Specified by:
nextChar
in interface CharIterator
- Overrides:
nextChar
in class AbstractCharIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousChar
public char previousChar()
- Description copied from class:
AbstractCharBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousChar
in interface CharBidirectionalIterator
- Overrides:
previousChar
in class AbstractCharBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
Copyright © 2011. All Rights Reserved.