public enum DependencyComparator extends Enum<DependencyComparator> implements Comparator<org.apache.maven.model.Dependency>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.apache.maven.model.Dependency d1,
org.apache.maven.model.Dependency d2) |
static DependencyComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependencyComparator[] |
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, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final DependencyComparator INSTANCE
public static DependencyComparator[] values()
for (DependencyComparator c : DependencyComparator.values()) System.out.println(c);
public static DependencyComparator 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(org.apache.maven.model.Dependency d1,
org.apache.maven.model.Dependency d2)
compare in interface Comparator<org.apache.maven.model.Dependency>d1 - the first dependencyd2 - the second dependency.Comparator.compare(Object, Object)Copyright © 2008–2022 MojoHaus. All rights reserved.