org.apache.commons.collections.primitives.decorators
Class UnmodifiableShortIterator

java.lang.Object
  extended byorg.apache.commons.collections.primitives.decorators.ProxyShortIterator
      extended byorg.apache.commons.collections.primitives.decorators.UnmodifiableShortIterator
All Implemented Interfaces:
ShortIterator

public final class UnmodifiableShortIterator
extends ProxyShortIterator

Since:
Commons Primitives 1.0
Version:
$Revision: 1.1 $ $Date: 2003/10/29 18:57:15 $
Author:
Rodney Waldhoff

Field Summary
private  ShortIterator proxied
           
 
Constructor Summary
(package private) UnmodifiableShortIterator(ShortIterator iterator)
           
 
Method Summary
protected  ShortIterator getIterator()
           
 boolean hasNext()
          Returns true iff I have more elements.
 short next()
          Returns the next element in me.
 void remove()
          Removes from my underlying collection the last element returned by me (optional operation).
static ShortIterator wrap(ShortIterator iterator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxied

private ShortIterator proxied
Constructor Detail

UnmodifiableShortIterator

UnmodifiableShortIterator(ShortIterator iterator)
Method Detail

remove

public void remove()
Description copied from interface: ShortIterator
Removes from my underlying collection the last element returned by me (optional operation).


getIterator

protected ShortIterator getIterator()
Specified by:
getIterator in class ProxyShortIterator

wrap

public static final ShortIterator wrap(ShortIterator iterator)

hasNext

public boolean hasNext()
Description copied from interface: ShortIterator
Returns true iff I have more elements. (In other words, returns true iff a subsequent call to next will return an element rather than throwing an exception.)

Specified by:
hasNext in interface ShortIterator
Returns:
true iff I have more elements

next

public short next()
Description copied from interface: ShortIterator
Returns the next element in me.

Specified by:
next in interface ShortIterator
Returns:
the next element in me


Copyright (c) 2002-2003 - Apache Software Foundation