public class ClassConsumer<T>
extends java.lang.Object
implements java.util.function.Consumer<T>
Constructor and Description |
---|
ClassConsumer(java.lang.Class<T> type,
java.util.function.Consumer<T> consumer) |
Modifier and Type | Method and Description |
---|---|
void |
accept(T instance) |
java.util.function.Consumer<T> |
consumer() |
static <R> ClassConsumer<R> |
of(java.lang.Class<R> type) |
static <R> ClassConsumer<R> |
of(java.lang.Class<R> type,
java.util.function.Consumer<R> consumer) |
java.lang.Class<T> |
type() |
public static <R> ClassConsumer<R> of(java.lang.Class<R> type)
public static <R> ClassConsumer<R> of(java.lang.Class<R> type, java.util.function.Consumer<R> consumer)
public java.lang.Class<T> type()
public java.util.function.Consumer<T> consumer()
Copyright © 2003-present Jodd Team