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

java.lang.Object
  extended by org.joda.primitives.list.impl.AbstractByteList.PListIterator
All Implemented Interfaces:
Iterator<Byte>, ListIterator<Byte>, ByteIterator, PrimitiveIterator<Byte>, ByteListIterator, PrimitiveListIterator<Byte>
Enclosing class:
AbstractByteList

protected static class AbstractByteList.PListIterator
extends Object
implements ByteListIterator

List iterator.


Constructor Summary
protected AbstractByteList.PListIterator(AbstractByteList list, int start)
           
 
Method Summary
 void add(byte value)
          Adds the specified value to the list underlying the iterator at the current iteration index (optional operation).
 void add(Byte obj)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 boolean isModifiable()
          Checks whether the iterator can currently be modified.
 boolean isResettable()
          Checks whether the iterator can be reset.
 Byte next()
           
 byte nextByte()
          Gets the next value from the iterator
 int nextIndex()
           
 Byte previous()
           
 byte previousByte()
          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(byte value)
          Sets the last retrieved value from the iterator (optional operation).
 void set(Byte obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractByteList.PListIterator

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

hasNext

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

nextByte

public byte nextByte()
Description copied from interface: ByteIterator
Gets the next value from the iterator

Specified by:
nextByte in interface ByteIterator
Returns:
the next available value

next

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

nextIndex

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

hasPrevious

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

previousByte

public byte previousByte()
Description copied from interface: ByteListIterator
Gets the previous value from the iterator.

Specified by:
previousByte in interface ByteListIterator
Returns:
the previous available value

previous

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

previousIndex

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

remove

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

add

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

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

add

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

set

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

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

set

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

isModifiable

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

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


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