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()
ShortIteratorreturned by me
(optional operation).protected ShortIterator getIterator()
public static final ShortIterator wrap(ShortIterator iterator)
public boolean hasNext()
ShortIteratortrue 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 ShortIteratortrue iff I have more elementspublic short next()
ShortIteratornext in interface ShortIteratorCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.