Interface FunctionList.Function<A,​B>

  • All Known Subinterfaces:
    FunctionList.AdvancedFunction<A,​B>
    Enclosing class:
    FunctionList<S,​E>

    public static interface FunctionList.Function<A,​B>
    A Function encapsulates the logic for transforming a list element into any kind of Object. Implementations should typically create and return new objects, though it is permissible to return the original value unchanged (i.e. the Identity Function).
    • Method Detail

      • evaluate

        B evaluate​(A sourceValue)
        Transform the given sourceValue into any kind of Object.
        Parameters:
        sourceValue - the Object to transform
        Returns:
        the transformed version of the object