public final class UnmodifiableShortIterator extends Object
Modifier and Type | Method and Description |
---|---|
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) |
public void remove()
ShortIterator
returned
by me
(optional operation).protected ShortIterator getIterator()
public static final ShortIterator wrap(ShortIterator iterator)
public boolean hasNext()
ShortIterator
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 ShortIterator
true
iff I have more elementspublic short next()
ShortIterator
next
in interface ShortIterator
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.