Class FluentIterable.FromIterableFunction<E>

  • All Implemented Interfaces:
    Function<java.lang.Iterable<E>,​FluentIterable<E>>
    Enclosing class:
    FluentIterable<E>

    private static class FluentIterable.FromIterableFunction<E>
    extends java.lang.Object
    implements Function<java.lang.Iterable<E>,​FluentIterable<E>>
    Function that transforms Iterable<E> into a fluent iterable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FluentIterable<E> apply​(java.lang.Iterable<E> fromObject)
      Returns the result of applying this function to input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FromIterableFunction

        private FromIterableFunction()
    • Method Detail

      • apply

        public FluentIterable<E> apply​(java.lang.Iterable<E> fromObject)
        Description copied from interface: Function
        Returns the result of applying this function to input. This method is generally expected, but not absolutely required, to have the following properties:
        • Its execution does not cause any observable side effects.
        • The computation is consistent with equals; that is, Objects.equal(a, b) implies that Objects.equal(function.apply(a), function.apply(b)).
        Specified by:
        apply in interface Function<java.lang.Iterable<E>,​FluentIterable<E>>