| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiConsumer<T,U> |
doNothing() |
static <U,T> BiConsumer<U,T> |
indexed(IndexedBiConsumer<U,T> action)
Returns a stateful
BiPredicate. |
static <T,C extends Collection<? super T>> |
ofAdd() |
static <T,C extends Collection<T>> |
ofAddAll()
Of add all.
|
static <T> BiConsumer<StringBuilder,T> |
ofAppend() |
static BiConsumer<Joiner,Joiner> |
ofMerge() |
static <K,V,M extends Map<K,V>,E extends Map.Entry<K,V>> |
ofPut() |
static <K,V,M extends Map<K,V>> |
ofPutAll()
Of put all.
|
static <T,C extends Collection<? super T>> |
ofRemove() |
static <T,C extends Collection<T>> |
ofRemoveAll()
Of remove all.
|
static <K,V,M extends Map<K,V>> |
ofRemoveByKey()
Of remove by key.
|
public static <T,U> BiConsumer<T,U> doNothing()
T - U - public static <T,C extends Collection<? super T>> BiConsumer<C,T> ofAdd()
T - C - public static <T,C extends Collection<T>> BiConsumer<C,C> ofAddAll()
T - C - public static <T,C extends Collection<? super T>> BiConsumer<C,T> ofRemove()
T - C - public static <T,C extends Collection<T>> BiConsumer<C,C> ofRemoveAll()
T - C - public static <K,V,M extends Map<K,V>,E extends Map.Entry<K,V>> BiConsumer<M,E> ofPut()
K - the key typeV - the value typeM - E - public static <K,V,M extends Map<K,V>> BiConsumer<M,M> ofPutAll()
K - the key typeV - the value typeM - public static <K,V,M extends Map<K,V>> BiConsumer<M,K> ofRemoveByKey()
K - the key typeV - the value typeM - public static BiConsumer<Joiner,Joiner> ofMerge()
public static <T> BiConsumer<StringBuilder,T> ofAppend()
T - @Beta @SequentialOnly @Stateful public static <U,T> BiConsumer<U,T> indexed(IndexedBiConsumer<U,T> action)
BiPredicate. Don't save or cache for reuse or use it in parallel stream.U - T - action - Copyright © 2021. All rights reserved.