public final class UnmodifiableIntIterator extends Object
Modifier and Type | Method and Description |
---|---|
protected IntIterator |
getIterator() |
boolean |
hasNext()
Returns
true iff I have more elements. |
int |
next()
Returns the next element in me.
|
void |
remove()
Removes from my underlying collection the last
element
returned by me
(optional operation). |
static IntIterator |
wrap(IntIterator iterator) |
public void remove()
IntIterator
returned
by me
(optional operation).protected IntIterator getIterator()
public static final IntIterator wrap(IntIterator iterator)
public boolean hasNext()
IntIterator
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.)hasNext
in interface IntIterator
true
iff I have more elementspublic int next()
IntIterator
next
in interface IntIterator
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.