18 lines
348 B
Java
18 lines
348 B
Java
package org.bukkit.util;
|
|
|
|
/**
|
|
* Represents an operation that accepts a single input argument and returns no
|
|
* result.
|
|
*
|
|
* @param <T> the type of the input to the operation
|
|
*/
|
|
public interface Consumer<T> {
|
|
|
|
/**
|
|
* Performs this operation on the given argument.
|
|
*
|
|
* @param t the input argument
|
|
*/
|
|
void accept(T t);
|
|
}
|