Package com.google.common.collect
Class Iterables.UnmodifiableIterable<T>
- java.lang.Object
-
- com.google.common.collect.FluentIterable<T>
-
- com.google.common.collect.Iterables.UnmodifiableIterable<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
- Enclosing class:
- Iterables
private static final class Iterables.UnmodifiableIterable<T> extends FluentIterable<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUnmodifiableIterable(java.lang.Iterable<? extends T> iterable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEach(java.util.function.Consumer<? super T> action)java.util.Iterator<T>iterator()java.util.Spliterator<T>spliterator()java.lang.StringtoString()Returns a string representation of this fluent iterable, with the format[e1, e2, ..., en].-
Methods inherited from class com.google.common.collect.FluentIterable
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, size, skip, stream, toArray, toList, toMap, toMultiset, toSet, toSortedList, toSortedSet, transform, transformAndConcat, uniqueIndex
-
-
-
-
Field Detail
-
iterable
private final java.lang.Iterable<? extends T> iterable
-
-
Constructor Detail
-
UnmodifiableIterable
private UnmodifiableIterable(java.lang.Iterable<? extends T> iterable)
-
-
Method Detail
-
iterator
public java.util.Iterator<T> iterator()
-
forEach
public void forEach(java.util.function.Consumer<? super T> action)
-
spliterator
public java.util.Spliterator<T> spliterator()
-
toString
public java.lang.String toString()
Description copied from class:FluentIterableReturns a string representation of this fluent iterable, with the format[e1, e2, ..., en].Streamequivalent:stream.collect(Collectors.joining(", ", "[", "]"))or (less efficiently)stream.collect(Collectors.toList()).toString().- Overrides:
toStringin classFluentIterable<T>
-
-