Class FunctionDelegate<P,​R>

  • Type Parameters:
    P - the type of the arguments that can be passed to this function.
    R - the type of the result instances of this function.
    All Implemented Interfaces:
    com.google.common.base.Function<P,​R>, java.util.function.Function<P,​R>

    @GwtCompatible
    public class FunctionDelegate<P,​R>
    extends java.lang.Object
    implements com.google.common.base.Function<P,​R>
    Internal wrapper to look like a google.collect function
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      R apply​(P input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • FunctionDelegate

        public FunctionDelegate​(Functions.Function1<? super P,​? extends R> delegate)
        Creates a new FunctionDelegate that wraps the given delegate function.
        Parameters:
        delegate - the delegate function. May not be null.
    • Method Detail

      • apply

        public R apply​(P input)
        Specified by:
        apply in interface com.google.common.base.Function<P,​R>
        Specified by:
        apply in interface java.util.function.Function<P,​R>