public interface RestAPIVersion<T extends RestAPIVersion<T>> extends Comparable<T>
Modifier and Type | Method and Description |
---|---|
static <E extends RestAPIVersion<E>> |
getLatestVersion(Collection<E> versions)
Accept versions and one of them as a comparator, and get the latest one.
|
String |
getURLVersionPrefix()
Returns the URL version prefix (e.g.
|
boolean |
isDefaultVersion()
Returns whether this version is the default REST API version.
|
boolean |
isStableVersion()
Returns whether this version is considered stable.
|
compareTo
String getURLVersionPrefix()
boolean isDefaultVersion()
boolean isStableVersion()
static <E extends RestAPIVersion<E>> E getLatestVersion(Collection<E> versions)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.