public class APIVersionComparator extends Object implements Comparator<org.wso2.carbon.appmgt.api.model.WebApp>, Serializable
Compares APIs by their versions. This comparator supports following version string format.
Some example version strings supported by the comparator are given below.
Version matching is carried out by comparing the version strings token by token. Version numbers are compared in the conventional manner and the suffixes are compared lexicographically.
| Constructor and Description |
|---|
APIVersionComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.wso2.carbon.appmgt.api.model.WebApp api1,
org.wso2.carbon.appmgt.api.model.WebApp api2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(org.wso2.carbon.appmgt.api.model.WebApp api1,
org.wso2.carbon.appmgt.api.model.WebApp api2)
compare in interface Comparator<org.wso2.carbon.appmgt.api.model.WebApp>Copyright © 2017 WSO2. All rights reserved.