Interface Consumer<T>

  • Type Parameters:
    T - input data type

    public interface Consumer<T>
    Represents an operation that accepts a single input. This is borrowed semantic from Java 8 java.util.function.Consumer and provided here for compatibility with Java 7.
    • Method Detail

      • accept

        void accept​(T item)
        Performs the operation on the given input
        Parameters:
        item - the input argument