public static enum ComparisonContext.CompCtx extends Enum<ComparisonContext.CompCtx> implements ComparisonContext<Comparable<Object>>
ComparisonContext.defCompCtx()
instead of calling directly.
This exists because Enums are serializable and lambdas are not. Enums also make ideal
singletons.ComparisonContext.CompCtx
Equator.Comp, Equator.Equat
Enum Constant and Description |
---|
DEFAULT |
Modifier and Type | Method and Description |
---|---|
static ComparisonContext.CompCtx |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonContext.CompCtx[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
defCompCtx, eq, gt, gte, lt, lte, max, min
defaultComparator, defaultEquator, hash, neq
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final ComparisonContext.CompCtx DEFAULT
public static ComparisonContext.CompCtx[] values()
for (ComparisonContext.CompCtx c : ComparisonContext.CompCtx.values()) System.out.println(c);
public static ComparisonContext.CompCtx 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 nullCopyright © 2017. All rights reserved.