|
||||||||||
| 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 ListIteratorpublic boolean hasPrevious()
BidirectionalIterator
hasPrevious in interface ListIteratorpublic boolean nextBoolean()
BooleanIterator
nextBoolean in interface BooleanIteratorIterator.next()public boolean previousBoolean()
BooleanBidirectionalIterator
previousBoolean in interface BooleanBidirectionalIteratorListIterator.previous()public byte nextByte()
ByteIterator
nextByte in interface ByteIteratorIterator.next()public byte previousByte()
ByteBidirectionalIterator
previousByte in interface ByteBidirectionalIteratorListIterator.previous()public short nextShort()
ShortIterator
nextShort in interface ShortIteratorIterator.next()public short previousShort()
ShortBidirectionalIterator
previousShort in interface ShortBidirectionalIteratorListIterator.previous()public int nextInt()
IntIterator
nextInt in interface IntIteratorIterator.next()public int previousInt()
IntBidirectionalIterator
previousInt in interface IntBidirectionalIteratorListIterator.previous()public long nextLong()
LongIterator
nextLong in interface LongIteratorIterator.next()public long previousLong()
LongBidirectionalIterator
previousLong in interface LongBidirectionalIteratorListIterator.previous()public char nextChar()
CharIterator
nextChar in interface CharIteratorIterator.next()public char previousChar()
CharBidirectionalIterator
previousChar in interface CharBidirectionalIteratorListIterator.previous()public float nextFloat()
FloatIterator
nextFloat in interface FloatIteratorIterator.next()public float previousFloat()
FloatBidirectionalIterator
previousFloat in interface FloatBidirectionalIteratorListIterator.previous()public double nextDouble()
DoubleIterator
nextDouble in interface DoubleIteratorIterator.next()public double previousDouble()
DoubleBidirectionalIterator
previousDouble in interface DoubleBidirectionalIteratorListIterator.previous()public Object next()
next in interface ListIteratorpublic Object previous()
BidirectionalIterator
previous in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic int skip(int n)
BooleanIteratorThe 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 BooleanIteratorskip in class AbstractObjectIteratorpublic void set(boolean x)
set in interface BooleanListIteratorpublic void add(boolean x)
add in interface BooleanListIteratorpublic void set(byte x)
set in interface ByteListIteratorpublic void add(byte x)
add in interface ByteListIteratorpublic void set(short x)
set in interface ShortListIteratorpublic void add(short x)
add in interface ShortListIteratorpublic void set(int x)
set in interface IntListIteratorpublic void add(int x)
add in interface IntListIteratorpublic void set(long x)
set in interface LongListIteratorpublic void add(long x)
add in interface LongListIteratorpublic void set(char x)
set in interface CharListIteratorpublic void add(char x)
add in interface CharListIteratorpublic void set(float x)
set in interface FloatListIteratorpublic void add(float x)
add in interface FloatListIteratorpublic void set(double x)
set in interface DoubleListIteratorpublic void add(double x)
add in interface DoubleListIteratorpublic Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||