protected static class AbstractShortList.PListIterator extends java.lang.Object implements ShortListIterator
| Modifier | Constructor and Description |
|---|---|
protected |
PListIterator(AbstractShortList list,
int start) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(short value)
Adds the specified value to the list underlying the iterator at the
current iteration index (optional operation).
|
void |
add(java.lang.Short 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.Short |
next() |
int |
nextIndex() |
short |
nextShort()
Gets the next value from the iterator
|
java.lang.Short |
previous() |
int |
previousIndex() |
short |
previousShort()
Gets the previous value from the iterator.
|
void |
remove() |
void |
reset()
Resets the iterator back to its initial state (optional operation).
|
void |
set(short value)
Sets the last retrieved value from the iterator (optional operation).
|
void |
set(java.lang.Short obj) |
protected PListIterator(AbstractShortList list, int start)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Short>hasNext in interface java.util.ListIterator<java.lang.Short>public short nextShort()
ShortIteratornextShort in interface ShortIteratorpublic java.lang.Short next()
next in interface java.util.Iterator<java.lang.Short>next in interface java.util.ListIterator<java.lang.Short>public int nextIndex()
nextIndex in interface java.util.ListIterator<java.lang.Short>public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<java.lang.Short>public short previousShort()
ShortListIteratorpreviousShort in interface ShortListIteratorpublic java.lang.Short previous()
previous in interface java.util.ListIterator<java.lang.Short>public int previousIndex()
previousIndex in interface java.util.ListIterator<java.lang.Short>public void remove()
remove in interface java.util.Iterator<java.lang.Short>remove in interface java.util.ListIterator<java.lang.Short>public void add(short value)
ShortListIteratoradd in interface ShortListIteratorvalue - the value to addpublic void add(java.lang.Short obj)
add in interface java.util.ListIterator<java.lang.Short>public void set(short value)
ShortListIteratorset in interface ShortListIteratorvalue - the value to setpublic void set(java.lang.Short obj)
set in interface java.util.ListIterator<java.lang.Short>public boolean isModifiable()
PrimitiveIteratorisModifiable in interface PrimitiveIterator<java.lang.Short>true if the modification methods of the iterator can be usedpublic boolean isResettable()
PrimitiveIteratorisResettable in interface PrimitiveIterator<java.lang.Short>true if the object can be resetpublic void reset()
PrimitiveIteratorreset in interface PrimitiveIterator<java.lang.Short>Copyright © 2005–2018 Joda.org. All rights reserved.