it.unimi.dsi.fastutil.ints
Class AbstractInt2IntSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractIntIterator
it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
it.unimi.dsi.fastutil.ints.AbstractInt2IntSortedMap.KeySetIterator
- All Implemented Interfaces:
- BidirectionalIterator<Integer>, IntBidirectionalIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Iterator<Integer>
- Enclosing class:
- AbstractInt2IntSortedMap
protected static class AbstractInt2IntSortedMap.KeySetIterator
- extends AbstractIntBidirectionalIterator
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. |
int |
nextInt()
Delegates to the corresponding generic method. |
int |
previousInt()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator |
skip |
i
protected final ObjectBidirectionalIterator<Map.Entry<Integer,Integer>> i
AbstractInt2IntSortedMap.KeySetIterator
public AbstractInt2IntSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Integer,Integer>> i)
nextInt
public int nextInt()
- Description copied from class:
AbstractIntIterator
- Delegates to the corresponding generic method.
- Specified by:
nextInt
in interface IntIterator
- Overrides:
nextInt
in class AbstractIntIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousInt
public int previousInt()
- Description copied from class:
AbstractIntBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousInt
in interface IntBidirectionalIterator
- Overrides:
previousInt
in class AbstractIntBidirectionalIterator
- 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.