T- The type of the function input.
@ConsumerType @FunctionalInterface public interface Consumer<T>
This is a functional interface and can be used as the assignment target for a lambda expression or method reference.
void accept(T t) throws java.lang.Exception
t- The input to this function.
java.lang.Exception- An exception thrown by the method.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0