it.unimi.dsi.fastutil.longs
Class LongIterators.UnmodifiableListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongIterator
      extended by it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
          extended by it.unimi.dsi.fastutil.longs.AbstractLongListIterator
              extended by it.unimi.dsi.fastutil.longs.LongIterators.UnmodifiableListIterator
All Implemented Interfaces:
BidirectionalIterator<Long>, LongBidirectionalIterator, LongIterator, LongListIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>, ListIterator<Long>
Enclosing class:
LongIterators

public static class LongIterators.UnmodifiableListIterator
extends AbstractLongListIterator

An unmodifiable wrapper class for list iterators.


Field Summary
protected  LongListIterator i
           
 
Constructor Summary
LongIterators.UnmodifiableListIterator(LongListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Long next()
          Delegates to the corresponding type-specific method.
 int nextIndex()
           
 long nextLong()
          Delegates to the corresponding generic method.
 Long previous()
          Delegates to the corresponding type-specific method.
 int previousIndex()
           
 long previousLong()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongListIterator
add, add, set, set
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongIterator
remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.ListIterator
remove
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 

Field Detail

i

protected final LongListIterator i
Constructor Detail

LongIterators.UnmodifiableListIterator

public LongIterators.UnmodifiableListIterator(LongListIterator i)
Method Detail

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()
Description copied from interface: BidirectionalIterator
Returns whether there is a previous element.

Returns:
whether there is a previous element.
See Also:
ListIterator.hasPrevious()

nextLong

public long nextLong()
Description copied from class: AbstractLongIterator
Delegates to the corresponding generic method.

Specified by:
nextLong in interface LongIterator
Overrides:
nextLong in class AbstractLongIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousLong

public long previousLong()
Description copied from class: AbstractLongBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousLong in interface LongBidirectionalIterator
Overrides:
previousLong in class AbstractLongBidirectionalIterator
Returns:
the previous element in the iteration.
See Also:
ListIterator.previous()

nextIndex

public int nextIndex()

previousIndex

public int previousIndex()

next

public Long next()
Description copied from class: AbstractLongIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator<Long>
Specified by:
next in interface ListIterator<Long>
Overrides:
next in class AbstractLongIterator

previous

public Long previous()
Description copied from class: AbstractLongBidirectionalIterator
Delegates to the corresponding type-specific method.

Specified by:
previous in interface BidirectionalIterator<Long>
Specified by:
previous in interface ListIterator<Long>
Overrides:
previous in class AbstractLongBidirectionalIterator
Returns:
the previous element from the collection.
See Also:
ListIterator.previous()


Copyright © 2011. All Rights Reserved.