| java.lang.Object sun.text.normalizer.VersionInfo
VersionInfo | final public class VersionInfo (Code) | | Class to store version numbers of the form major.minor.milli.micro.
author: synwee |
Method Summary | |
public int | compareTo(VersionInfo other) Compares other with this VersionInfo. | public static VersionInfo | getInstance(String version) Returns an instance of VersionInfo with the argument version.
Parameters: version - version String in the format of "major.minor.milli.micro"or "major.minor.milli" or "major.minor" or "major",where major, minor, milli, micro are non-negative numbers<= 255. | public static VersionInfo | getInstance(int major, int minor, int milli, int micro) Returns an instance of VersionInfo with the argument version.
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. Parameters: milli - milli version, non-negative number <= 255. Parameters: micro - micro version, non-negative number <= 255. |
compareTo | public int compareTo(VersionInfo other)(Code) | | Compares other with this VersionInfo.
Parameters: other - VersionInfo to be compared 0 if the argument is a VersionInfo object that has versioninformation equals to this object.Less than 0 if the argument is a VersionInfo object that hasversion information greater than this object.Greater than 0 if the argument is a VersionInfo object thathas version information less than this object. |
getInstance | public static VersionInfo getInstance(String version)(Code) | | Returns an instance of VersionInfo with the argument version.
Parameters: version - version String in the format of "major.minor.milli.micro"or "major.minor.milli" or "major.minor" or "major",where major, minor, milli, micro are non-negative numbers<= 255. If the trailing version numbers arenot specified they are taken as 0s. E.g. Version "3.1" isequivalent to "3.1.0.0". an instance of VersionInfo with the argument version. throws an IllegalArgumentException when the argument versionis not in the right format |
getInstance | public static VersionInfo getInstance(int major, int minor, int milli, int micro)(Code) | | Returns an instance of VersionInfo with the argument version.
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. Parameters: milli - milli version, non-negative number <= 255. Parameters: micro - micro version, non-negative number <= 255. throws an IllegalArgumentException when either arguments arenegative or > 255 |
|
|