| Modifier and Type | Field and Description |
|---|---|
| public static final String | ICU_DATA_VERSION_PATH
Deprecated
This API is ICU internal only.
Data version string for ICU's data file.
|
| private static final String | INVALID_VERSION_NUMBER_
Error statement string |
| private int | m_version_
Version number stored as a byte for each of the major, minor, milli and micro numbers in the 32 bit int. |
| private static final ConcurrentHashMap | MAP_
Map of singletons |
| Access | Constructor and Description |
|---|---|
| private | VersionInfo(int
a 32 bit int with each byte representing a number compactversion)Constructor with int |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: 0 if the argument is a VersionInfo object that has version information equal to this object. Less than 0 if the argument is a VersionInfo object that has version information greater than this object. Greater than 0 if the argument is a VersionInfo object that has version information less than this object.VersionInfo to be compared other)Compares other with this VersionInfo. |
| public static VersionInfo | Returns: an instance of VersionInfo with the argument 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 are
not specified they are taken as 0s. E.g. Version "3.1" is
equivalent to "3.1.0.0". version)Returns an instance of VersionInfo with the argument version. |
| public static VersionInfo | getInstance(int
major version, non-negative number <= 255. major, int minor version, non-negative number <= 255. minor, int milli version, non-negative number <= 255. milli, int micro version, non-negative number <= 255. micro)Returns an instance of VersionInfo with the argument version. |
| private static int | getInt(int
non-negative version number major, int non-negativeversion number minor, int non-negativeversion number milli, int non-negativeversion number micro)Gets the int from the version numbers |
| ICU_DATA_VERSION_PATH | back to summary |
|---|---|
| public static final String ICU_DATA_VERSION_PATH
Deprecated This API is ICU internal only. Data version string for ICU's data file. Not used when loading from resources packaged in the .jar.
| |
| INVALID_VERSION_NUMBER_ | back to summary |
|---|---|
| private static final String INVALID_VERSION_NUMBER_ Error statement string | |
| m_version_ | back to summary |
|---|---|
| private int m_version_ Version number stored as a byte for each of the major, minor, milli and micro numbers in the 32 bit int. Most significant for the major and the least significant contains the micro numbers. | |
| MAP_ | back to summary |
|---|---|
| private static final ConcurrentHashMap<Integer, Object> MAP_ Map of singletons | |
| VersionInfo | back to summary |
|---|---|
| private VersionInfo(int compactversion) Constructor with int
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(VersionInfo other) Compares other with this VersionInfo.
| |
| getInstance | back to summary |
|---|---|
| public static VersionInfo getInstance(String version) Returns an instance of VersionInfo with the argument version.
| |
| getInstance | back to summary |
|---|---|
| public static VersionInfo getInstance(int major, int minor, int milli, int micro) Returns an instance of VersionInfo with the argument version.
| |
| getInt | back to summary |
|---|---|
| private static int getInt(int major, int minor, int milli, int micro) Gets the int from the version numbers
| |