public class APIVersionStringComparator extends Object implements Comparator<String>
Compares WebApp version strings. 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 |
|---|
APIVersionStringComparator() |
public int compare(String o1, String o2)
compare in interface Comparator<String>Copyright © 2017 WSO2. All rights reserved.