@PublicAPI @Beta public final class OrderedElements extends Object
OrderedElement
.
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Modifier and Type | Method and Description |
---|---|
static <T> OrderedElement<T> |
of(int index,
T value)
Create an instance.
|
static <T> Iterator<OrderedElement<T>> |
ofIterator(Iterator<T> base)
Wrap iterated elements.
|
public static <T> OrderedElement<T> of(int index, T value)
index
- Indexvalue
- Valuepublic static <T> Iterator<OrderedElement<T>> ofIterator(Iterator<T> base)
T
- Iterated element typebase
- Base Iterator
Iterator
of OrderedElement
instances which assign sequence index