public enum ChangeComparator extends Enum<ChangeComparator> implements Comparator<Change>
Change
.Enum Constant and Description |
---|
INSTANCE
The singleton
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Change change1,
Change change2) |
static ChangeComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChangeComparator[] |
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
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final ChangeComparator INSTANCE
public static ChangeComparator[] values()
for (ChangeComparator c : ChangeComparator.values()) System.out.println(c);
public static ChangeComparator 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 int compare(Change change1, Change change2)
compare
in interface Comparator<Change>
Copyright © 2020 AssertJ. All rights reserved.