org.apache.commons.collections.primitives.decorators
Class UnmodifiableIntIterator
java.lang.Object
org.apache.commons.collections.primitives.decorators.ProxyIntIterator
org.apache.commons.collections.primitives.decorators.UnmodifiableIntIterator
- All Implemented Interfaces:
- IntIterator
- public final class UnmodifiableIntIterator
- extends ProxyIntIterator
- Since:
- Commons Primitives 1.0
- Version:
- $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
- Author:
- Rodney Waldhoff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxied
private IntIterator proxied
UnmodifiableIntIterator
UnmodifiableIntIterator(IntIterator iterator)
remove
public void remove()
- Description copied from interface:
IntIterator
- Removes from my underlying collection the last
element
returned
by me
(optional operation).
getIterator
protected IntIterator getIterator()
- Specified by:
getIterator
in class ProxyIntIterator
wrap
public static final IntIterator wrap(IntIterator iterator)
hasNext
public boolean hasNext()
- Description copied from interface:
IntIterator
- 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 IntIterator
- Returns:
true
iff I have more elements
next
public int next()
- Description copied from interface:
IntIterator
- Returns the next element in me.
- Specified by:
next
in interface IntIterator
- Returns:
- the next element in me
Copyright (c) 2002-2003 - Apache Software Foundation