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