- 类型参数:
C - the consumed element generic type
P - the produced element generic type
CONS - the consumer generic type
- 所有超级接口:
- Consumer<C>, Producer<P,CONS>
public interface Filter<C,P,CONS extends Consumer<? super P>>
extends Consumer<C>, Producer<P,CONS>
A filter is the combination of a producer and a consumer.