T - The type of the wrapped elementpublic static class Looper.Looped<T> extends Object
| Constructor and Description |
|---|
Looped(T originalElement,
boolean first,
boolean last,
int index)
Creates a new wrapper around the given element.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
first()
Returns whether the wrapped element is the first element of the
iterator.
|
T |
get()
Returns the wrapped element.
|
int |
index()
Returns the index of the wrapped element.
|
boolean |
last()
Returns whether the wrapped element is the last element of the
iterator.
|
public Looped(T originalElement, boolean first, boolean last, int index)
originalElement - The original elementfirst - true if this element is the first element, false otherwiselast - true if this element is the last element, false otherwiseindex - The 0-based index of the elementpublic T get()
public boolean first()
true if the wrapped element is the first element of
the iterator, false otherwisepublic boolean last()
true if the wrapped element is the last element of
the iterator, false otherwisepublic int index()
0-based index of the wrapped elementCopyright © 2026. All rights reserved.