public enum MergeResult extends Enum<MergeResult>
Enum Constant and Description |
---|
TAKE_FIRST |
TAKE_SECOND |
Modifier and Type | Method and Description |
---|---|
static <T> BiFunction<T,T,MergeResult> |
alternated()
Deprecated.
Use
Fn.alternated() instead |
static <T extends Comparable<? super T>> |
maxFirst(T a,
T b) |
static <T> MergeResult |
maxFirst(T a,
T b,
Comparator<? super T> cmp) |
static <T extends Comparable<? super T>> |
minFirst(T a,
T b) |
static <T> MergeResult |
minFirst(T a,
T b,
Comparator<? super T> cmp) |
static MergeResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergeResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeResult TAKE_FIRST
public static final MergeResult TAKE_SECOND
public static MergeResult[] values()
for (MergeResult c : MergeResult.values()) System.out.println(c);
public static MergeResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <T extends Comparable<? super T>> MergeResult minFirst(T a, T b)
public static <T> MergeResult minFirst(T a, T b, Comparator<? super T> cmp)
T
- a
- b
- cmp
- public static <T extends Comparable<? super T>> MergeResult maxFirst(T a, T b)
T
- a
- b
- public static <T> MergeResult maxFirst(T a, T b, Comparator<? super T> cmp)
T
- a
- b
- cmp
- @Deprecated @Beta @SequentialOnly @Stateful public static <T> BiFunction<T,T,MergeResult> alternated()
Fn.alternated()
insteadBiFunction
. Don't cache or reuse it.T
- Copyright © 2020. All rights reserved.