public static enum TestUtils.IntArrayComparator extends Enum<TestUtils.IntArrayComparator> implements Comparator<int[]>
int[].| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(int[] a,
int[] b) |
static TestUtils.IntArrayComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestUtils.IntArrayComparator[] |
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, valueOfequalspublic static final TestUtils.IntArrayComparator INSTANCE
public static TestUtils.IntArrayComparator[] values()
for (TestUtils.IntArrayComparator c : TestUtils.IntArrayComparator.values()) System.out.println(c);
public static TestUtils.IntArrayComparator 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(int[] a,
int[] b)
compare in interface Comparator<int[]>Copyright © 2014. All Rights Reserved.