@Mutable public class ReversingIterator<ELEMENT> extends ReadOnlyIterator<ELEMENT>
| Modifier | Constructor and Description |
|---|---|
protected |
ReversingIterator(ELEMENT... elements) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
ELEMENT |
next() |
static <ELEMENT> @Nonnull ReversingIterator<ELEMENT> |
with(ELEMENT... elements)
Returns a new reversing iterator that iterates over the given elements in reverse order.
|
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@SafeVarargs protected ReversingIterator(@Shared @Unmodified @Nonnull ELEMENT... elements)
@Pure @SafeVarargs @Capturable @Nonnull public static <ELEMENT> @Nonnull ReversingIterator<ELEMENT> with(@Shared @Unmodified @Nonnull ELEMENT... elements)
@Pure public boolean hasNext()
Copyright © 2017. All rights reserved.