T
- The entry type.public class ReverseIterable<T> extends Object implements Iterable<T>
Iterable
without altering the underlying list.Constructor and Description |
---|
ReverseIterable(List<T> list)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Iterator<T> |
iterator() |
static <T> ReverseIterable<T> |
of(List<T> list)
Convenience method for constructing instances.
|
static <T> ReverseIterable<T> |
of(T[] list)
Convenience method for constructing instances.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ReverseIterable(List<T> list)
list
- The original list.public static <T> ReverseIterable<T> of(List<T> list)
list
- The original list.ReverseIterable
.public static <T> ReverseIterable<T> of(T[] list)
list
- The original list.ReverseIterable
.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.