Package com.mongodb

Interface Function<T,R>

  • Type Parameters:
    T - the type of input objects to the apply operation
    R - the type of result objects from the apply operation. May be the same type as <T>.

    public interface Function<T,R>
    Apply a function to the input object yielding an appropriate result object. A function may variously provide a mapping between types, object instances or keys and values or any other form of transformation upon the input.
    • Method Detail

      • apply

        R apply(T t)
        Yield an appropriate result object for the input object.
        Parameters:
        t - the input object
        Returns:
        the function result