it.unimi.dsi.fastutil.ints
Class IntBigListIterators.UnmodifiableBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
          extended by it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
              extended by it.unimi.dsi.fastutil.ints.IntBigListIterators.UnmodifiableBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Integer>, BigListIterator<Integer>, IntBidirectionalIterator, IntBigListIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Iterator<Integer>
Enclosing class:
IntBigListIterators

public static class IntBigListIterators.UnmodifiableBigListIterator
extends AbstractIntBigListIterator

An unmodifiable wrapper class for big list iterators.


Field Summary
protected  IntBigListIterator i
           
 
Constructor Summary
IntBigListIterators.UnmodifiableBigListIterator(IntBigListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Integer next()
          Delegates to the corresponding type-specific method.
 long nextIndex()
          Returns the index of the element that would be returned by a subsequent call to next.
 int nextInt()
          Delegates to the corresponding generic method.
 Integer previous()
          Delegates to the corresponding type-specific method.
 long previousIndex()
          Returns the index of the element that would be returned by a subsequent call to previous.
 int previousInt()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
add, add, back, set, set, skip
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface java.util.Iterator
remove
 

Field Detail

i

protected final IntBigListIterator i
Constructor Detail

IntBigListIterators.UnmodifiableBigListIterator

public IntBigListIterators.UnmodifiableBigListIterator(IntBigListIterator 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()

nextInt

public int nextInt()
Description copied from class: AbstractIntIterator
Delegates to the corresponding generic method.

Specified by:
nextInt in interface IntIterator
Overrides:
nextInt in class AbstractIntIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousInt

public int previousInt()
Description copied from class: AbstractIntBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousInt in interface IntBidirectionalIterator
Overrides:
previousInt in class AbstractIntBidirectionalIterator
Returns:
the previous element in the iteration.
See Also:
ListIterator.previous()

nextIndex

public long nextIndex()
Description copied from interface: BigListIterator
Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.)

Returns:
the index of the element that would be returned by a subsequent call to next, or list size if list iterator is at end of list.
See Also:
ListIterator.nextIndex()

previousIndex

public long previousIndex()
Description copied from interface: BigListIterator
Returns the index of the element that would be returned by a subsequent call to previous. (Returns -1 if the list iterator is at the beginning of the list.)

Returns:
the index of the element that would be returned by a subsequent call to previous, or -1 if list iterator is at beginning of list.
See Also:
ListIterator.previousIndex()

next

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

Specified by:
next in interface Iterator<Integer>
Overrides:
next in class AbstractIntIterator

previous

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

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


Copyright © 2011. All Rights Reserved.