Enum Class MergeResult

java.lang.Object
java.lang.Enum<MergeResult>
com.landawn.abacus.util.MergeResult
All Implemented Interfaces:
Serializable, Comparable<MergeResult>, Constable

public enum MergeResult extends Enum<MergeResult>
Since:
0.8
Author:
Haiyang Li
  • Enum Constant Details

    • TAKE_FIRST

      public static final MergeResult TAKE_FIRST
    • TAKE_SECOND

      public static final MergeResult TAKE_SECOND
  • Method Details

    • values

      public static MergeResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MergeResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • minFirst

      public static <T extends Comparable<? super T>> MergeResult minFirst(T a, T b)
    • minFirst

      public static <T> MergeResult minFirst(T a, T b, Comparator<? super T> cmp)
      Type Parameters:
      T -
      Parameters:
      a -
      b -
      cmp -
      Returns:
    • maxFirst

      public static <T extends Comparable<? super T>> MergeResult maxFirst(T a, T b)
      Type Parameters:
      T -
      Parameters:
      a -
      b -
      Returns:
    • maxFirst

      public static <T> MergeResult maxFirst(T a, T b, Comparator<? super T> cmp)
      Type Parameters:
      T -
      Parameters:
      a -
      b -
      cmp -
      Returns:
    • minFirst

      public static <T extends Comparable> BiFunction<T,T,MergeResult> minFirst()
    • minFirst

      public static <T> BiFunction<T,T,MergeResult> minFirst(Comparator<? super T> cmp)
    • maxFirst

      public static <T extends Comparable> BiFunction<T,T,MergeResult> maxFirst()
    • maxFirst

      public static <T> BiFunction<T,T,MergeResult> maxFirst(Comparator<? super T> cmp)
    • switchOnNext

      @Deprecated @Beta @SequentialOnly @Stateful public static <T> BiFunction<T,T,MergeResult> switchOnNext()
      Deprecated.
      Use Fn.switchOnNext() instead
      Returns a stateful BiFunction. Don't save or cache for reuse or use it in parallel stream.
      Type Parameters:
      T -
      Returns: