| java.lang.Object com.ibm.icu.util.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 boolean | equals(Object other) | 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. | public static VersionInfo | getInstance(int major, int minor, int milli) Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, minor, milli, 0).
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. Parameters: milli - milli version, non-negative number <= 255. | public static VersionInfo | getInstance(int major, int minor) Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, minor, 0, 0).
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. | public static VersionInfo | getInstance(int major) Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, 0, 0, 0).
Parameters: major - major version, non-negative number <= 255. | public int | getMajor() | public int | getMicro() | public int | getMilli() | public int | getMinor() | public static VersionInfo | javaVersion() | public String | toString() |
ICU_DATA_VERSION | final public static String ICU_DATA_VERSION(Code) | | Data version string for ICU's internal data
|
ICU_VERSION | final public static VersionInfo ICU_VERSION(Code) | | ICU4J current release version
|
UCOL_BUILDER_VERSION | final public static VersionInfo UCOL_BUILDER_VERSION(Code) | | ICU4J collator builder version
|
UCOL_RUNTIME_VERSION | final public static VersionInfo UCOL_RUNTIME_VERSION(Code) | | ICU4J collator runtime version
|
UCOL_TAILORINGS_VERSION | final public static VersionInfo UCOL_TAILORINGS_VERSION(Code) | | ICU4J collator tailorings version
|
UNICODE_1_0_1 | final public static VersionInfo UNICODE_1_0_1(Code) | | Unicode 1.0.1 version
|
UNICODE_1_1_0 | final public static VersionInfo UNICODE_1_1_0(Code) | | Unicode 1.1.0 version
|
UNICODE_1_1_5 | final public static VersionInfo UNICODE_1_1_5(Code) | | Unicode 1.1.5 version
|
UNICODE_2_1_2 | final public static VersionInfo UNICODE_2_1_2(Code) | | Unicode 2.1.2 version
|
UNICODE_2_1_5 | final public static VersionInfo UNICODE_2_1_5(Code) | | Unicode 2.1.5 version
|
UNICODE_2_1_8 | final public static VersionInfo UNICODE_2_1_8(Code) | | Unicode 2.1.8 version
|
UNICODE_2_1_9 | final public static VersionInfo UNICODE_2_1_9(Code) | | Unicode 2.1.9 version
|
UNICODE_3_0_1 | final public static VersionInfo UNICODE_3_0_1(Code) | | Unicode 3.0.1 version
|
UNICODE_3_1_0 | final public static VersionInfo UNICODE_3_1_0(Code) | | Unicode 3.1.0 version
|
UNICODE_3_1_1 | final public static VersionInfo UNICODE_3_1_1(Code) | | Unicode 3.1.1 version
|
UNICODE_4_0_1 | final public static VersionInfo UNICODE_4_0_1(Code) | | Unicode 4.0.1 version
|
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. |
equals | public boolean equals(Object other)(Code) | | Checks if this version information is equals to the argument version
Parameters: other - object to be compared true if other is equals to this object's version information,false otherwise |
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 |
getInstance | public static VersionInfo getInstance(int major, int minor, int milli)(Code) | | Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, minor, milli, 0).
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. Parameters: milli - milli version, non-negative number <= 255. throws an IllegalArgumentException when either arguments arenegative or > 255 |
getInstance | public static VersionInfo getInstance(int major, int minor)(Code) | | Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, minor, 0, 0).
Parameters: major - major version, non-negative number <= 255. Parameters: minor - minor version, non-negative number <= 255. throws an IllegalArgumentException when either arguments arenegative or > 255 |
getInstance | public static VersionInfo getInstance(int major)(Code) | | Returns an instance of VersionInfo with the argument version.
Equivalent to getInstance(major, 0, 0, 0).
Parameters: major - major version, non-negative number <= 255. throws an IllegalArgumentException when either arguments arenegative or > 255 |
getMajor | public int getMajor()(Code) | | Returns the major version number
the major version number |
getMicro | public int getMicro()(Code) | | Returns the micro version number
the micro version number |
getMilli | public int getMilli()(Code) | | Returns the milli version number
the milli version number |
getMinor | public int getMinor()(Code) | | Returns the minor version number
the minor version number |
toString | public String toString()(Code) | | Returns the String representative of VersionInfo in the format of
"major.minor.milli.micro"
String representative of VersionInfo |
|
|