Class Functions.FunctionComposition<A,​B,​C>

  • All Implemented Interfaces:
    Function<A,​C>, java.io.Serializable, java.util.function.Function<A,​C>
    Enclosing class:
    Functions

    private static class Functions.FunctionComposition<A,​B,​C>
    extends java.lang.Object
    implements Function<A,​C>, java.io.Serializable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      C apply​(A a)  
      boolean equals​(java.lang.Object obj)
      May return true if object is a Function that behaves identically to this function.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • FunctionComposition

        public FunctionComposition​(Function<B,​C> g,
                                   Function<A,​? extends B> f)
    • Method Detail

      • apply

        public C apply​(A a)
        Specified by:
        apply in interface Function<A,​B>
        Specified by:
        apply in interface java.util.function.Function<A,​B>
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from interface: Function
        May return true if object is a Function that behaves identically to this function.

        Warning: do not depend on the behavior of this method.

        Historically, Function instances in this library have implemented this method to recognize certain cases where distinct Function instances would in fact behave identically. However, as code migrates to java.util.function, that behavior will disappear. It is best not to depend on it.

        Specified by:
        equals in interface Function<A,​B>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object