Class Iterables.UnmodifiableIterable<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>
    Enclosing class:
    Iterables

    private static final class Iterables.UnmodifiableIterable<T>
    extends FluentIterable<T>
    • 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()
      • toString

        public java.lang.String toString()
        Description copied from class: FluentIterable
        Returns a string representation of this fluent iterable, with the format [e1, e2, ..., en].

        Stream equivalent: stream.collect(Collectors.joining(", ", "[", "]")) or (less efficiently) stream.collect(Collectors.toList()).toString().

        Overrides:
        toString in class FluentIterable<T>