public class Version extends Object implements Serializable, Comparable<Version>
public static final Version SNAPSHOT
public Version(int[] components,
String qualifier)
components - the numeric components of the version; may be null for SNAPSHOT versionqualifier - the qualifierpublic Version(String versionString) throws ParseException
integer ( "." integer )* ( "-" qualifier )?
versionString - the string representation of the versionParseException - if the version is not in the correct formatpublic int compareTo(Version o)
compareTo in interface Comparable<Version>Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.