org.joda.primitives.list.impl
Class AbstractDoubleList.PListIterator

java.lang.Object
  extended by org.joda.primitives.list.impl.AbstractDoubleList.PListIterator
All Implemented Interfaces:
Iterator<Double>, ListIterator<Double>, DoubleIterator, PrimitiveIterator<Double>, DoubleListIterator, PrimitiveListIterator<Double>
Enclosing class:
AbstractDoubleList

protected static class AbstractDoubleList.PListIterator
extends Object
implements DoubleListIterator

List iterator.


Constructor Summary
protected AbstractDoubleList.PListIterator(AbstractDoubleList list, int start)
           
 
Method Summary
 void add(double value)
          Adds the specified value to the list underlying the iterator at the current iteration index (optional operation).
 void add(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.
 Double next()
           
 double nextDouble()
          Gets the next value from the iterator
 int nextIndex()
           
 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(Double obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDoubleList.PListIterator

protected AbstractDoubleList.PListIterator(AbstractDoubleList list,
                                           int start)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Double>
Specified by:
hasNext in interface ListIterator<Double>

nextDouble

public double nextDouble()
Description copied from interface: DoubleIterator
Gets the next value from the iterator

Specified by:
nextDouble in interface DoubleIterator
Returns:
the next available value

next

public Double next()
Specified by:
next in interface Iterator<Double>
Specified by:
next in interface ListIterator<Double>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<Double>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<Double>

previousDouble

public double previousDouble()
Description copied from interface: DoubleListIterator
Gets the previous value from the iterator.

Specified by:
previousDouble in interface DoubleListIterator
Returns:
the previous available value

previous

public Double previous()
Specified by:
previous in interface ListIterator<Double>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<Double>

remove

public void remove()
Specified by:
remove in interface Iterator<Double>
Specified by:
remove in interface ListIterator<Double>

add

public void add(double value)
Description copied from interface: DoubleListIterator
Adds the specified value to the list underlying the iterator at the current iteration index (optional operation).

Specified by:
add in interface DoubleListIterator
Parameters:
value - the value to add

add

public void add(Double obj)
Specified by:
add in interface ListIterator<Double>

set

public void set(double value)
Description copied from interface: DoubleListIterator
Sets the last retrieved value from the iterator (optional operation).

Specified by:
set in interface DoubleListIterator
Parameters:
value - the value to set

set

public void set(Double obj)
Specified by:
set in interface ListIterator<Double>

isModifiable

public boolean isModifiable()
Description copied from interface: PrimitiveIterator
Checks whether the iterator can currently be modified.

Specified by:
isModifiable in interface PrimitiveIterator<Double>
Returns:
true if the modification methods of the iterator can be used

isResettable

public boolean isResettable()
Description copied from interface: PrimitiveIterator
Checks whether the iterator can be reset.

Specified by:
isResettable in interface PrimitiveIterator<Double>
Returns:
true if the object can be reset

reset

public void reset()
Description copied from interface: PrimitiveIterator
Resets the iterator back to its initial state (optional operation).

Specified by:
reset in interface PrimitiveIterator<Double>


Copyright © 2005-2010 Joda.org. All Rights Reserved.