private static final class Iterables.UnmodifiableIterable<T> extends FluentIterable<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<? extends T> |
iterable |
Modifier | Constructor and Description |
---|---|
private |
UnmodifiableIterable(java.lang.Iterable<? extends T> iterable) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
iterator() |
java.lang.String |
toString()
Returns a string representation of this fluent iterable, with the format
[e1, e2, ...,
en] . |
allMatch, anyMatch, append, append, concat, concat, concat, concat, concat, contains, copyInto, cycle, filter, filter, first, firstMatch, from, from, from, get, index, isEmpty, join, last, limit, of, of, of, size, skip, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, transform, transformAndConcat, uniqueIndex
private final java.lang.Iterable<? extends T> iterable
private UnmodifiableIterable(java.lang.Iterable<? extends T> iterable)
public java.util.Iterator<T> iterator()
public java.lang.String toString()
FluentIterable
[e1, e2, ...,
en]
.
Stream
equivalent: stream.collect(Collectors.joining(", ", "[", "]"))
or (less efficiently) stream.collect(Collectors.toList()).toString()
.
toString
in class FluentIterable<T>