Interface Function<F,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T apply​(F input)  
      boolean equals​(java.lang.Object object)
      May return true if object is a Function that behaves identically to this function.
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

        T apply​(F input)
        Specified by:
        apply in interface java.util.function.Function<F,​T>
      • equals

        boolean equals​(java.lang.Object object)
        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.

        Overrides:
        equals in class java.lang.Object