public final class IntRangeIterator extends Object implements ListIterator<Integer>, PrimitiveIterator.OfInt
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
Constructor and Description |
---|
IntRangeIterator(int low,
int step,
int size) |
IntRangeIterator(int low,
int step,
int size,
int startIdx) |
Modifier and Type | Method and Description |
---|---|
void |
add(Integer e) |
boolean |
hasNext() |
boolean |
hasPrevious() |
Integer |
next() |
int |
nextIndex() |
int |
nextInt() |
Integer |
previous() |
int |
previousIndex() |
int |
previousInt() |
void |
remove() |
void |
set(Integer e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, forEachRemaining
public IntRangeIterator(int low, int step, int size)
public IntRangeIterator(int low, int step, int size, int startIdx)
public boolean hasNext()
public int nextInt()
nextInt
in interface PrimitiveIterator.OfInt
public Integer next()
next
in interface Iterator<Integer>
next
in interface ListIterator<Integer>
next
in interface PrimitiveIterator.OfInt
public boolean hasPrevious()
hasPrevious
in interface ListIterator<Integer>
public Integer previous()
previous
in interface ListIterator<Integer>
public int previousInt()
public int nextIndex()
nextIndex
in interface ListIterator<Integer>
public int previousIndex()
previousIndex
in interface ListIterator<Integer>
public void remove()
public void set(Integer e)
set
in interface ListIterator<Integer>
public void add(Integer e)
add
in interface ListIterator<Integer>
Copyright © 2020. All rights reserved.