Class Fn.BiConsumers

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

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

    • doNothing

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

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

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

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

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

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

      public static <T extends PrimitiveList> BiConsumer<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>> BiConsumer<M,E> ofPut()
      Type Parameters:
      K - the key type
      V - the value type
      M -
      E -
      Returns:
    • ofPutAll

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

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

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

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