Class Fn.BiFunctions

java.lang.Object
com.landawn.abacus.util.Fn.BiFunctions
Enclosing class:
Fn

public static final class Fn.BiFunctions extends Object
The Class BiFunctions.
  • Method Details

    • selectFirst

      public static <T, U> BiFunction<T,U,T> selectFirst()
      Type Parameters:
      T -
      U -
      Returns:
    • selectSecond

      public static <T, U> BiFunction<T,U,U> selectSecond()
      Type Parameters:
      T -
      U -
      Returns:
    • ofAdd

      public static <T, C extends Collection<? super T>> BiFunction<C,T,C> ofAdd()
      Type Parameters:
      T -
      C -
      Returns:
    • ofAddAll

      public static <T, C extends Collection<T>> BiFunction<C,C,C> ofAddAll()
      Of add all.
      Type Parameters:
      T -
      C -
      Returns:
    • ofAddAlll

      public static <T extends PrimitiveList> BiFunction<T,T,T> ofAddAlll()
      Of add alll.
      Type Parameters:
      T -
      Returns:
    • ofRemove

      public static <T, C extends Collection<? super T>> BiFunction<C,T,C> ofRemove()
      Type Parameters:
      T -
      C -
      Returns:
    • ofRemoveAll

      public static <T, C extends Collection<T>> BiFunction<C,C,C> ofRemoveAll()
      Of remove all.
      Type Parameters:
      T -
      C -
      Returns:
    • ofRemoveAlll

      public static <T extends PrimitiveList> BiFunction<T,T,T> ofRemoveAlll()
      Of remove alll.
      Type Parameters:
      T -
      Returns:
    • ofPut

      public static <K, V, M extends Map<K, V>, E extends Map.Entry<K, V>> BiFunction<M,E,M> ofPut()
      Type Parameters:
      K - the key type
      V - the value type
      M -
      E -
      Returns:
    • ofPutAll

      public static <K, V, M extends Map<K, V>> BiFunction<M,M,M> ofPutAll()
      Of put all.
      Type Parameters:
      K - the key type
      V - the value type
      M -
      Returns:
    • ofRemoveByKey

      public static <K, V, M extends Map<K, V>> BiFunction<M,K,M> ofRemoveByKey()
      Of remove by key.
      Type Parameters:
      K - the key type
      V - the value type
      M -
      Returns:
    • ofMerge

      public static BiFunction<Joiner,Joiner,Joiner> ofMerge()
      Returns:
    • ofAppend

      public static <T> BiFunction<StringBuilder,T,StringBuilder> ofAppend()
      Type Parameters:
      T -
      Returns:
    • indexed

      @Beta @SequentialOnly @Stateful public static <T, U, R> BiFunction<T,U,R> indexed(IndexedBiFunction<T,U,? extends R> func)
      Returns a stateful BiPredicate. Don't save or cache for reuse or use it in parallel stream.
      Type Parameters:
      T -
      U -
      R -
      Parameters:
      func -
      Returns: