public class DependencyComparator extends Object implements Comparator<Dependency>
Comparator
that orders dependencies
in a suitable form for
being referenced in the build.Modifier and Type | Field and Description |
---|---|
static DependencyComparator |
INSTANCE
A default stateless instance.
|
Constructor and Description |
---|
DependencyComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Dependency o1,
Dependency o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final DependencyComparator INSTANCE
public int compare(Dependency o1, Dependency o2)
compare
in interface Comparator<Dependency>
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.