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