|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectIterator
it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator
it.unimi.dsi.fastutil.objects.AbstractObjectListIterator
it.unimi.dsi.fastutil.Iterators.EmptyIterator
A class returning no elements and implementing all type-specific iterator interfaces.
This class may be useful to implement your own in case you subclass a type-specific iterator.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
void |
add(boolean x)
|
void |
add(byte x)
|
void |
add(char x)
|
void |
add(double x)
|
void |
add(float x)
|
void |
add(int x)
|
void |
add(long x)
|
void |
add(short x)
|
Object |
clone()
|
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
Object |
next()
|
boolean |
nextBoolean()
Returns the next element as a primitive type. |
byte |
nextByte()
Returns the next element as a primitive type. |
char |
nextChar()
Returns the next element as a primitive type. |
double |
nextDouble()
Returns the next element as a primitive type. |
float |
nextFloat()
Returns the next element as a primitive type. |
int |
nextIndex()
|
int |
nextInt()
Returns the next element as a primitive type. |
long |
nextLong()
Returns the next element as a primitive type. |
short |
nextShort()
Returns the next element as a primitive type. |
Object |
previous()
Returns the previous element from the collection. |
boolean |
previousBoolean()
Returns the previous element as a primitive type. |
byte |
previousByte()
Returns the previous element as a primitive type. |
char |
previousChar()
Returns the previous element as a primitive type. |
double |
previousDouble()
Returns the previous element as a primitive type. |
float |
previousFloat()
Returns the previous element as a primitive type. |
int |
previousIndex()
|
int |
previousInt()
Returns the previous element as a primitive type. |
long |
previousLong()
Returns the previous element as a primitive type. |
short |
previousShort()
Returns the previous element as a primitive type. |
void |
set(boolean x)
|
void |
set(byte x)
|
void |
set(char x)
|
void |
set(double x)
|
void |
set(float x)
|
void |
set(int x)
|
void |
set(long x)
|
void |
set(short x)
|
int |
skip(int n)
Skips the given number of elements. |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectListIterator |
add, set |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBidirectionalIterator |
back |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectIterator |
remove |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
add, remove, set |
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleBidirectionalIterator |
back |
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator |
back |
Field Detail |
public static final long serialVersionUID
Method Detail |
public boolean hasNext()
hasNext
in interface ListIterator
public boolean hasPrevious()
BidirectionalIterator
hasPrevious
in interface ListIterator
public boolean nextBoolean()
BooleanIterator
nextBoolean
in interface BooleanIterator
Iterator.next()
public boolean previousBoolean()
BooleanBidirectionalIterator
previousBoolean
in interface BooleanBidirectionalIterator
ListIterator.previous()
public byte nextByte()
ByteIterator
nextByte
in interface ByteIterator
Iterator.next()
public byte previousByte()
ByteBidirectionalIterator
previousByte
in interface ByteBidirectionalIterator
ListIterator.previous()
public short nextShort()
ShortIterator
nextShort
in interface ShortIterator
Iterator.next()
public short previousShort()
ShortBidirectionalIterator
previousShort
in interface ShortBidirectionalIterator
ListIterator.previous()
public int nextInt()
IntIterator
nextInt
in interface IntIterator
Iterator.next()
public int previousInt()
IntBidirectionalIterator
previousInt
in interface IntBidirectionalIterator
ListIterator.previous()
public long nextLong()
LongIterator
nextLong
in interface LongIterator
Iterator.next()
public long previousLong()
LongBidirectionalIterator
previousLong
in interface LongBidirectionalIterator
ListIterator.previous()
public char nextChar()
CharIterator
nextChar
in interface CharIterator
Iterator.next()
public char previousChar()
CharBidirectionalIterator
previousChar
in interface CharBidirectionalIterator
ListIterator.previous()
public float nextFloat()
FloatIterator
nextFloat
in interface FloatIterator
Iterator.next()
public float previousFloat()
FloatBidirectionalIterator
previousFloat
in interface FloatBidirectionalIterator
ListIterator.previous()
public double nextDouble()
DoubleIterator
nextDouble
in interface DoubleIterator
Iterator.next()
public double previousDouble()
DoubleBidirectionalIterator
previousDouble
in interface DoubleBidirectionalIterator
ListIterator.previous()
public Object next()
next
in interface ListIterator
public Object previous()
BidirectionalIterator
previous
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public int skip(int n)
BooleanIterator
The effect of this call is exactly the same as that of
calling Iterator.next()
for n
times (possibly stopping
if Iterator.hasNext()
becomes false).
skip
in interface BooleanIterator
skip
in class AbstractObjectIterator
public void set(boolean x)
set
in interface BooleanListIterator
public void add(boolean x)
add
in interface BooleanListIterator
public void set(byte x)
set
in interface ByteListIterator
public void add(byte x)
add
in interface ByteListIterator
public void set(short x)
set
in interface ShortListIterator
public void add(short x)
add
in interface ShortListIterator
public void set(int x)
set
in interface IntListIterator
public void add(int x)
add
in interface IntListIterator
public void set(long x)
set
in interface LongListIterator
public void add(long x)
add
in interface LongListIterator
public void set(char x)
set
in interface CharListIterator
public void add(char x)
add
in interface CharListIterator
public void set(float x)
set
in interface FloatListIterator
public void add(float x)
add
in interface FloatListIterator
public void set(double x)
set
in interface DoubleListIterator
public void add(double x)
add
in interface DoubleListIterator
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |