Package com.landawn.abacus.util
Class Fn.BiConsumers
java.lang.Object
com.landawn.abacus.util.Fn.BiConsumers
- Enclosing class:
- Fn
The Class BiConsumers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U> BiConsumer<T, U> static <U,
T> BiConsumer<U, T> indexed
(IndexedBiConsumer<U, T> action) Returns a statefulBiPredicate
.static <T,
C extends Collection<? super T>>
BiConsumer<C,T> ofAdd()
static <T,
C extends Collection<T>>
BiConsumer<C,C> ofAddAll()
Of add all.static <T extends PrimitiveList>
BiConsumer<T,T> Of add alll.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>>
BiConsumer<M,E> ofPut()
static <K,
V, M extends Map<K, V>>
BiConsumer<M,M> ofPutAll()
Of put all.static <T,
C extends Collection<? super T>>
BiConsumer<C,T> ofRemove()
static <T,
C extends Collection<T>>
BiConsumer<C,C> Of remove all.static <T extends PrimitiveList>
BiConsumer<T,T> Of remove alll.static <K,
V, M extends Map<K, V>>
BiConsumer<M,K> Of remove by key.
-
Method Details
-
doNothing
- Type Parameters:
T
-U
-- Returns:
-
ofAdd
- Type Parameters:
T
-C
-- Returns:
-
ofAddAll
Of add all.- Type Parameters:
T
-C
-- Returns:
-
ofAddAlll
Of add alll.- Type Parameters:
T
-- Returns:
-
ofRemove
- Type Parameters:
T
-C
-- Returns:
-
ofRemoveAll
Of remove all.- Type Parameters:
T
-C
-- Returns:
-
ofRemoveAlll
Of remove alll.- Type Parameters:
T
-- Returns:
-
ofPut
- Type Parameters:
K
- the key typeV
- the value typeM
-E
-- Returns:
-
ofPutAll
Of put all.- Type Parameters:
K
- the key typeV
- the value typeM
-- Returns:
-
ofRemoveByKey
Of remove by key.- Type Parameters:
K
- the key typeV
- the value typeM
-- Returns:
-
ofMerge
- Returns:
-
ofAppend
- Type Parameters:
T
-- Returns:
-
indexed
@Beta @SequentialOnly @Stateful public static <U,T> BiConsumer<U,T> indexed(IndexedBiConsumer<U, T> action) Returns a statefulBiPredicate
. Don't save or cache for reuse or use it in parallel stream.- Type Parameters:
U
-T
-- Parameters:
action
-- Returns:
-