protected static class AbstractIntList.PListIterator extends java.lang.Object implements IntListIterator
Modifier | Constructor and Description |
---|---|
protected |
PListIterator(AbstractIntList list,
int start) |
Modifier and Type | Method and Description |
---|---|
void |
add(int value)
Adds the specified value to the list underlying the iterator at the
current iteration index (optional operation).
|
void |
add(java.lang.Integer obj) |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
isModifiable()
Checks whether the iterator can currently be modified.
|
boolean |
isResettable()
Checks whether the iterator can be reset.
|
java.lang.Integer |
next() |
int |
nextIndex() |
int |
nextInt()
Gets the next value from the iterator
|
java.lang.Integer |
previous() |
int |
previousIndex() |
int |
previousInt()
Gets the previous value from the iterator.
|
void |
remove() |
void |
reset()
Resets the iterator back to its initial state (optional operation).
|
void |
set(int value)
Sets the last retrieved value from the iterator (optional operation).
|
void |
set(java.lang.Integer obj) |
protected PListIterator(AbstractIntList list, int start)
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Integer>
hasNext
in interface java.util.ListIterator<java.lang.Integer>
public int nextInt()
IntIterator
nextInt
in interface IntIterator
public java.lang.Integer next()
next
in interface java.util.Iterator<java.lang.Integer>
next
in interface java.util.ListIterator<java.lang.Integer>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<java.lang.Integer>
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<java.lang.Integer>
public int previousInt()
IntListIterator
previousInt
in interface IntListIterator
public java.lang.Integer previous()
previous
in interface java.util.ListIterator<java.lang.Integer>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<java.lang.Integer>
public void remove()
remove
in interface java.util.Iterator<java.lang.Integer>
remove
in interface java.util.ListIterator<java.lang.Integer>
public void add(int value)
IntListIterator
add
in interface IntListIterator
value
- the value to addpublic void add(java.lang.Integer obj)
add
in interface java.util.ListIterator<java.lang.Integer>
public void set(int value)
IntListIterator
set
in interface IntListIterator
value
- the value to setpublic void set(java.lang.Integer obj)
set
in interface java.util.ListIterator<java.lang.Integer>
public boolean isModifiable()
PrimitiveIterator
isModifiable
in interface PrimitiveIterator<java.lang.Integer>
true
if the modification methods of the iterator can be usedpublic boolean isResettable()
PrimitiveIterator
isResettable
in interface PrimitiveIterator<java.lang.Integer>
true
if the object can be resetpublic void reset()
PrimitiveIterator
reset
in interface PrimitiveIterator<java.lang.Integer>
Copyright © 2005–2018 Joda.org. All rights reserved.