Package com.landawn.abacus.util
Enum Class MergeResult
- All Implemented Interfaces:
Serializable
,Comparable<MergeResult>
,Constable
- Since:
- 0.8
- Author:
- Haiyang Li
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable>
BiFunction<T,T, MergeResult> maxFirst()
static <T> BiFunction<T,
T, MergeResult> maxFirst
(Comparator<? super T> cmp) static <T extends Comparable<? super T>>
MergeResultmaxFirst
(T a, T b) static <T> MergeResult
maxFirst
(T a, T b, Comparator<? super T> cmp) static <T extends Comparable>
BiFunction<T,T, MergeResult> minFirst()
static <T> BiFunction<T,
T, MergeResult> minFirst
(Comparator<? super T> cmp) static <T extends Comparable<? super T>>
MergeResultminFirst
(T a, T b) static <T> MergeResult
minFirst
(T a, T b, Comparator<? super T> cmp) static <T> BiFunction<T,
T, MergeResult> Deprecated.static MergeResult
Returns the enum constant of this class with the specified name.static MergeResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TAKE_FIRST
-
TAKE_SECOND
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
minFirst
-
minFirst
- Type Parameters:
T
-- Parameters:
a
-b
-cmp
-- Returns:
-
maxFirst
- Type Parameters:
T
-- Parameters:
a
-b
-- Returns:
-
maxFirst
- Type Parameters:
T
-- Parameters:
a
-b
-cmp
-- Returns:
-
minFirst
-
minFirst
-
maxFirst
-
maxFirst
-
switchOnNext
@Deprecated @Beta @SequentialOnly @Stateful public static <T> BiFunction<T,T, switchOnNext()MergeResult> Deprecated.UseFn.switchOnNext()
insteadReturns a statefulBiFunction
. Don't save or cache for reuse or use it in parallel stream.- Type Parameters:
T
-- Returns:
-
Fn.switchOnNext()
instead