Consumer.java 436 B

123456789101112131415161718
  1. package com.wdkl.permission;
  2. /**
  3. * Represents an operation that accepts a single input argument and returns no
  4. * result. Unlike most other functional interfaces, {@code Consumer} is expected
  5. * to operate via side-effects.
  6. *
  7. * @param <T> the type of the input to the operation
  8. */
  9. public interface Consumer<T> {
  10. /**
  11. * Performs this operation on the given argument.
  12. *
  13. * @param t the input argument
  14. */
  15. void accept(T t);
  16. }