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> |
maxFirst() |
static <T> BiFunction<T,T,MergeResult> |
maxFirst(Comparator<? super T> cmp) |
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> |
minFirst() |
static <T> BiFunction<T,T,MergeResult> |
minFirst(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 - public static <T extends Comparable> BiFunction<T,T,MergeResult> minFirst()
public static <T> BiFunction<T,T,MergeResult> minFirst(Comparator<? super T> cmp)
public static <T extends Comparable> BiFunction<T,T,MergeResult> maxFirst()
public static <T> BiFunction<T,T,MergeResult> maxFirst(Comparator<? super T> cmp)
@Deprecated @Beta @SequentialOnly @Stateful public static <T> BiFunction<T,T,MergeResult> alternated()
Fn.alternated() insteadBiFunction. Don't save or cache for reuse or use it in parallel stream.T - Copyright © 2021. All rights reserved.