Interface Function<T,​V>

  • All Superinterfaces:
    Function<T,​V>, Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Function<T,​V>
    extends Function<T,​V>, Serializable
    Function is a one-argument lambda which performs a transformation on the object of type T passed to the valueOf() method. This transformation can return the value of calling a getter, or perform some more elaborate logic to calculate a value, of type V.
    • Method Detail

      • valueOf

        V valueOf​(T each)
      • apply

        default V apply​(T each)
        Specified by:
        apply in interface Function<T,​V>