public static class RestAPIVersion.RestAPIVersionComparator extends Object implements Comparator<RestAPIVersion>
RestAPIVersion
that sorts versions based on their version number, i.e.
oldest to latest.Constructor and Description |
---|
RestAPIVersionComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(RestAPIVersion o1,
RestAPIVersion 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 int compare(RestAPIVersion o1, RestAPIVersion o2)
compare
in interface Comparator<RestAPIVersion>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.