T - The type of the elements being iterated overpublic class Looper<T> extends Object implements Iterable<Looper.Looped<T>>
Iterable and adds some valuable properties
to the elements being looped over. The elements returned by this wrapper are
instances of Looper.Looped and contains properties such as “first” or “last”
so you don’t have to keep track of those yourself.| Modifier and Type | Class and Description |
|---|---|
static class |
Looper.Looped<T>
Wrapper around an element of the original iterable.
|
static class |
Looper.LooperIterator<T>
Wrapper around the
Iterator returned by the original
Iterable which wraps all returned elements into
Looper.Loopeds. |
| Constructor and Description |
|---|
Looper(Iterable<T> originalIterable)
Creates a new looper.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Looper.Looped<T>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Iterator<Looper.Looped<T>> iterator()
iterator in interface Iterable<Looper.Looped<T>>Copyright © 2026. All rights reserved.