Package thredds.server.wcs
Class Version
- java.lang.Object
-
- thredds.server.wcs.Version
-
- All Implemented Interfaces:
Comparable<Version>
public class Version extends Object implements Comparable<Version>
Represent a version number formed by one or more non-negative integers with a period separating each integer. E.g., "1.0" or "1.0.1" but not "1.0a".Augmented BNF:
nni = non-negative integer version = nni *("." nni)- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Version thatVersion)booleanequals(Object obj)StringgetVersionString()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Version
public Version(String versionString)
Constructes a Version with the given version string.- Parameters:
versionString- the version string.- Throws:
IllegalArgumentException- if version string is null or not a valid version number.
-
-
Method Detail
-
getVersionString
public String getVersionString()
-
compareTo
public int compareTo(Version thatVersion)
- Specified by:
compareToin interfaceComparable<Version>
-
-