Interface Consumer<V>

  • Type Parameters:
    V - the value type

    public interface Consumer<V>
    A functional interface (callback) that consumes a single value.
    • Method Detail

      • accept

        void accept​(V value)
             throws Exception
        Consumes a value.
        Parameters:
        value - the value
        Throws:
        Exception - on error