it.unimi.dsi.fastutil.shorts
Class ShortBigListIterators.UnmodifiableBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.shorts.AbstractShortIterator
      extended by it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
          extended by it.unimi.dsi.fastutil.shorts.AbstractShortBigListIterator
              extended by it.unimi.dsi.fastutil.shorts.ShortBigListIterators.UnmodifiableBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Short>, BigListIterator<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortBigListIterator, ShortIterator, Iterator<Short>
Enclosing class:
ShortBigListIterators

public static class ShortBigListIterators.UnmodifiableBigListIterator
extends AbstractShortBigListIterator

An unmodifiable wrapper class for big list iterators.


Field Summary
protected  ShortBigListIterator i
           
 
Constructor Summary
ShortBigListIterators.UnmodifiableBigListIterator(ShortBigListIterator i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 Short 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.
 short nextShort()
          Delegates to the corresponding generic method.
 Short 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.
 short previousShort()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortBigListIterator
add, add, back, set, set, skip
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
back
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortIterator
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.shorts.ShortBidirectionalIterator
back
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterator
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 ShortBigListIterator i
Constructor Detail

ShortBigListIterators.UnmodifiableBigListIterator

public ShortBigListIterators.UnmodifiableBigListIterator(ShortBigListIterator 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()

nextShort

public short nextShort()
Description copied from class: AbstractShortIterator
Delegates to the corresponding generic method.

Specified by:
nextShort in interface ShortIterator
Overrides:
nextShort in class AbstractShortIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousShort

public short previousShort()
Description copied from class: AbstractShortBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousShort in interface ShortBidirectionalIterator
Overrides:
previousShort in class AbstractShortBidirectionalIterator
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 Short next()
Description copied from class: AbstractShortIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator<Short>
Overrides:
next in class AbstractShortIterator

previous

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

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


Copyright © 2011. All Rights Reserved.