public static final class Fn.BiConsumers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T,U> BiConsumer<T,U> |
create(BiFunction<? super T,? super U,?> func)
Returns a
BiConsumer which calls the specified func . |
static <T,U> BiConsumer<T,U> |
doNothing() |
static <U,T> BiConsumer<U,T> |
indexed(IndexedBiConsumer<U,T> action) |
static <T,C extends java.util.Collection<? super T>> |
ofAdd() |
static <T,C extends java.util.Collection<T>> |
ofAddAll() |
static <T extends PrimitiveList> |
ofAddAlll() |
static <T> BiConsumer<java.lang.StringBuilder,T> |
ofAppend() |
static BiConsumer<Joiner,Joiner> |
ofMerge() |
static <K,V,M extends java.util.Map<K,V>,E extends java.util.Map.Entry<K,V>> |
ofPut() |
static <K,V,M extends java.util.Map<K,V>> |
ofPutAll() |
static <T,C extends java.util.Collection<? super T>> |
ofRemove() |
static <T,C extends java.util.Collection<T>> |
ofRemoveAll() |
static <T extends PrimitiveList> |
ofRemoveAlll() |
static <K,V,M extends java.util.Map<K,V>> |
ofRemoveByKey() |
public static <T,U> BiConsumer<T,U> doNothing()
public static <T,C extends java.util.Collection<? super T>> BiConsumer<C,T> ofAdd()
public static <T,C extends java.util.Collection<T>> BiConsumer<C,C> ofAddAll()
public static <T extends PrimitiveList> BiConsumer<T,T> ofAddAlll()
public static <T,C extends java.util.Collection<? super T>> BiConsumer<C,T> ofRemove()
public static <T,C extends java.util.Collection<T>> BiConsumer<C,C> ofRemoveAll()
public static <T extends PrimitiveList> BiConsumer<T,T> ofRemoveAlll()
public static <K,V,M extends java.util.Map<K,V>,E extends java.util.Map.Entry<K,V>> BiConsumer<M,E> ofPut()
public static <K,V,M extends java.util.Map<K,V>> BiConsumer<M,M> ofPutAll()
public static <K,V,M extends java.util.Map<K,V>> BiConsumer<M,K> ofRemoveByKey()
public static BiConsumer<Joiner,Joiner> ofMerge()
public static <T> BiConsumer<java.lang.StringBuilder,T> ofAppend()
public static <T,U> BiConsumer<T,U> create(BiFunction<? super T,? super U,?> func)
BiConsumer
which calls the specified func
.func
- public static <U,T> BiConsumer<U,T> indexed(IndexedBiConsumer<U,T> action)