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

java.lang.Object
  extended by org.joda.primitives.list.impl.AbstractShortList.PListIterator
All Implemented Interfaces:
Iterator<Short>, ListIterator<Short>, PrimitiveIterator<Short>, ShortIterator, PrimitiveListIterator<Short>, ShortListIterator
Enclosing class:
AbstractShortList

protected static class AbstractShortList.PListIterator
extends Object
implements ShortListIterator

List iterator.


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

Constructor Detail

AbstractShortList.PListIterator

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

hasNext

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

nextShort

public short nextShort()
Description copied from interface: ShortIterator
Gets the next value from the iterator

Specified by:
nextShort in interface ShortIterator
Returns:
the next available value

next

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

nextIndex

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

hasPrevious

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

previousShort

public short previousShort()
Description copied from interface: ShortListIterator
Gets the previous value from the iterator.

Specified by:
previousShort in interface ShortListIterator
Returns:
the previous available value

previous

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

previousIndex

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

remove

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

add

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

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

add

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

set

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

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

set

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

isModifiable

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

Specified by:
isModifiable in interface PrimitiveIterator<Short>
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<Short>
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<Short>


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