Package com.landawn.abacus.util
Class Fn.BiFunctions
java.lang.Object
com.landawn.abacus.util.Fn.BiFunctions
- Enclosing class:
- Fn
The Class BiFunctions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U, R> BiFunction<T, U, R> indexed
(IntBiObjFunction<T, U, ? extends R> func) Returns a statefulBiPredicate
.static <T,
C extends Collection<? super T>>
BiFunction<C,T, C> ofAdd()
static <T,
C extends Collection<T>>
BiFunction<C,C, C> ofAddAll()
Of add all.static <T extends PrimitiveList>
BiFunction<T,T, T> Of add alll.static <T> BiFunction<StringBuilder,
T, StringBuilder> ofAppend()
static BiFunction<Joiner,
Joiner, Joiner> ofMerge()
static <K,
V, M extends Map<K, V>, E extends Map.Entry<K, V>>
BiFunction<M,E, M> ofPut()
static <K,
V, M extends Map<K, V>>
BiFunction<M,M, M> ofPutAll()
Of put all.static <T,
C extends Collection<? super T>>
BiFunction<C,T, C> ofRemove()
static <T,
C extends Collection<T>>
BiFunction<C,C, C> Of remove all.static <T extends PrimitiveList>
BiFunction<T,T, T> Of remove alll.static <K,
V, M extends Map<K, V>>
BiFunction<M,K, M> Of remove by key.static <T,
U> BiFunction<T, U, T> static <T,
U> BiFunction<T, U, U>
-
Method Details
-
selectFirst
- Type Parameters:
T
-U
-- Returns:
-
selectSecond
- 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 <T,U, BiFunction<T,R> U, indexedR> (IntBiObjFunction<T, U, ? extends R> func) Returns a statefulBiPredicate
. Don't save or cache for reuse or use it in parallel stream.- Type Parameters:
T
-U
-R
-- Parameters:
func
-- Returns:
-