public static class VersionSpecification.RangeWithRecommended extends Object implements VersionSpecification
VersionSpecification.Range, VersionSpecification.RangeWithRecommended, VersionSpecification.SingleVersion| Constructor and Description |
|---|
RangeWithRecommended(VersionRange range,
Version recommended)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Version o1,
Version o2) |
VersionRange |
getRange() |
Version |
getRecommended() |
boolean |
isMatching(Version version)
Return true if the given version is compatible with the specified version.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic RangeWithRecommended(VersionRange range, Version recommended)
public Version getRecommended()
public VersionRange getRange()
public boolean isMatching(Version version)
VersionSpecificationisMatching in interface VersionSpecificationpublic int compare(Version o1, Version o2)
compare in interface Comparator<Version>Copyright © 2019. All rights reserved.