Added in API level 24

VersionInfo

class VersionInfo : Comparable<VersionInfo!>
kotlin.Any
   ↳ android.icu.util.VersionInfo

Class to store version numbers of the form major.minor.milli.micro.

Summary

Public methods
Int

Compares other with this VersionInfo.

Boolean
equals(other: Any?)

Checks if this version information is equals to the argument version

static VersionInfo!
getInstance(version: String!)

Returns an instance of VersionInfo with the argument version.

static VersionInfo!
getInstance(major: Int, minor: Int, milli: Int, micro: Int)

Returns an instance of VersionInfo with the argument version.

static VersionInfo!
getInstance(major: Int, minor: Int, milli: Int)

Returns an instance of VersionInfo with the argument version.

static VersionInfo!
getInstance(major: Int, minor: Int)

Returns an instance of VersionInfo with the argument version.

static VersionInfo!
getInstance(major: Int)

Returns an instance of VersionInfo with the argument version.

Int

Returns the major version number

Int

Returns the micro version number

Int

Returns the milli version number

Int

Returns the minor version number

Int

Returns the hash code value for this set.

String

Returns the String representative of VersionInfo in the format of "major.

Properties
static VersionInfo!

ICU4J current release version

static VersionInfo!

Collation builder code version.

static VersionInfo!

Collation runtime version (sort key generator, string comparisons).

static VersionInfo!

Unicode 10.

static VersionInfo!

Unicode 11.

static VersionInfo!

Unicode 12.

static VersionInfo!

Unicode 12.

static VersionInfo!

Unicode 13.

static VersionInfo!

Unicode 14.

static VersionInfo!

Unicode 15.

static VersionInfo!

Unicode 1.

static VersionInfo!

Unicode 1.

static VersionInfo!

Unicode 1.

static VersionInfo!

Unicode 1.

static VersionInfo!

Unicode 2.

static VersionInfo!

Unicode 2.

static VersionInfo!

Unicode 2.

static VersionInfo!

Unicode 2.

static VersionInfo!

Unicode 2.

static VersionInfo!

Unicode 3.

static VersionInfo!

Unicode 3.

static VersionInfo!

Unicode 3.

static VersionInfo!

Unicode 3.

static VersionInfo!

Unicode 3.

static VersionInfo!

Unicode 4.

static VersionInfo!

Unicode 4.

static VersionInfo!

Unicode 4.

static VersionInfo!

Unicode 5.

static VersionInfo!

Unicode 5.

static VersionInfo!

Unicode 5.

static VersionInfo!

Unicode 6.

static VersionInfo!

Unicode 6.

static VersionInfo!

Unicode 6.

static VersionInfo!

Unicode 6.

static VersionInfo!

Unicode 7.

static VersionInfo!

Unicode 8.

static VersionInfo!

Unicode 9.

Public methods

compareTo

Added in API level 24
fun compareTo(other: VersionInfo!): Int

Compares other with this VersionInfo.

Parameters
o the object to be compared.
other VersionInfo!: VersionInfo to be compared
Return
Int 0 if the argument is a VersionInfo object that has version information equals 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.
Exceptions
java.lang.NullPointerException if the specified object is null
java.lang.ClassCastException if the specified object's type prevents it from being compared to this object.

equals

Added in API level 24
fun equals(other: Any?): Boolean

Checks if this version information is equals to the argument version

Parameters
obj the reference object with which to compare.
other Any?: object to be compared
Return
Boolean true if other is equals to this object's version information, false otherwise

getInstance

Added in API level 24
static fun getInstance(version: String!): VersionInfo!

Returns an instance of VersionInfo with the argument version.

Parameters
version String!: 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".
Return
VersionInfo! an instance of VersionInfo with the argument version.
Exceptions
java.lang.IllegalArgumentException when the argument version is not in the right format

getInstance

Added in API level 24
static fun getInstance(
    major: Int,
    minor: Int,
    milli: Int,
    micro: Int
): VersionInfo!

Returns an instance of VersionInfo with the argument version.

Parameters
major Int: major version, non-negative number <= 255.
minor Int: minor version, non-negative number <= 255.
milli Int: milli version, non-negative number <= 255.
micro Int: micro version, non-negative number <= 255.
Exceptions
java.lang.IllegalArgumentException when either arguments are negative or > 255

getInstance

Added in API level 24
static fun getInstance(
    major: Int,
    minor: Int,
    milli: Int
): VersionInfo!

Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, minor, milli, 0).

Parameters
major Int: major version, non-negative number <= 255.
minor Int: minor version, non-negative number <= 255.
milli Int: milli version, non-negative number <= 255.
Exceptions
java.lang.IllegalArgumentException when either arguments are negative or > 255

getInstance

Added in API level 24
static fun getInstance(
    major: Int,
    minor: Int
): VersionInfo!

Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, minor, 0, 0).

Parameters
major Int: major version, non-negative number <= 255.
minor Int: minor version, non-negative number <= 255.
Exceptions
java.lang.IllegalArgumentException when either arguments are negative or > 255

getInstance

Added in API level 24
static fun getInstance(major: Int): VersionInfo!

Returns an instance of VersionInfo with the argument version. Equivalent to getInstance(major, 0, 0, 0).

Parameters
major Int: major version, non-negative number <= 255.
Exceptions
java.lang.IllegalArgumentException when either arguments are negative or > 255

getMajor

Added in API level 24
fun getMajor(): Int

Returns the major version number

Return
Int the major version number

getMicro

Added in API level 24
fun getMicro(): Int

Returns the micro version number

Return
Int the micro version number

getMilli

Added in API level 24
fun getMilli(): Int

Returns the milli version number

Return
Int the milli version number

getMinor

Added in API level 24
fun getMinor(): Int

Returns the minor version number

Return
Int the minor version number

hashCode

Added in API level 24
fun hashCode(): Int

Returns the hash code value for this set.

Return
Int the hash code value for this set.

toString

Added in API level 24
fun toString(): String

Returns the String representative of VersionInfo in the format of "major.minor.milli.micro"

Return
String String representative of VersionInfo

Properties

ICU_VERSION

Added in API level 24
static val ICU_VERSION: VersionInfo!

ICU4J current release version

UCOL_BUILDER_VERSION

Added in API level 24
static val UCOL_BUILDER_VERSION: VersionInfo!

Collation builder code version. When this is different, the same tailoring might result in assigning different collation elements to code points. This value may change in subsequent releases of ICU.

UCOL_RUNTIME_VERSION

Added in API level 24
static val UCOL_RUNTIME_VERSION: VersionInfo!

Collation runtime version (sort key generator, string comparisons). If the version is different, sort keys for the same string could be different. This value may change in subsequent releases of ICU.

UNICODE_10_0

Added in API level 28
static val UNICODE_10_0: VersionInfo!

Unicode 10.0 version

UNICODE_11_0

Added in API level 29
static val UNICODE_11_0: VersionInfo!

Unicode 11.0 version

UNICODE_12_0

Added in API level 30
static val UNICODE_12_0: VersionInfo!

Unicode 12.0 version

UNICODE_12_1

Added in API level 30
static val UNICODE_12_1: VersionInfo!

Unicode 12.1 version

UNICODE_13_0

Added in API level 30
static val UNICODE_13_0: VersionInfo!

Unicode 13.0 version

UNICODE_14_0

Added in API level 33
static val UNICODE_14_0: VersionInfo!

Unicode 14.0 version

UNICODE_15_0

Added in API level 34
static val UNICODE_15_0: VersionInfo!

Unicode 15.0 version

UNICODE_1_0

Added in API level 24
static val UNICODE_1_0: VersionInfo!

Unicode 1.0 version

UNICODE_1_0_1

Added in API level 24
static val UNICODE_1_0_1: VersionInfo!

Unicode 1.0.1 version

UNICODE_1_1_0

Added in API level 24
static val UNICODE_1_1_0: VersionInfo!

Unicode 1.1.0 version

UNICODE_1_1_5

Added in API level 24
static val UNICODE_1_1_5: VersionInfo!

Unicode 1.1.5 version

UNICODE_2_0

Added in API level 24
static val UNICODE_2_0: VersionInfo!

Unicode 2.0 version

UNICODE_2_1_2

Added in API level 24
static val UNICODE_2_1_2: VersionInfo!

Unicode 2.1.2 version

UNICODE_2_1_5

Added in API level 24
static val UNICODE_2_1_5: VersionInfo!

Unicode 2.1.5 version

UNICODE_2_1_8

Added in API level 24
static val UNICODE_2_1_8: VersionInfo!

Unicode 2.1.8 version

UNICODE_2_1_9

Added in API level 24
static val UNICODE_2_1_9: VersionInfo!

Unicode 2.1.9 version

UNICODE_3_0

Added in API level 24
static val UNICODE_3_0: VersionInfo!

Unicode 3.0 version

UNICODE_3_0_1

Added in API level 24
static val UNICODE_3_0_1: VersionInfo!

Unicode 3.0.1 version

UNICODE_3_1_0

Added in API level 24
static val UNICODE_3_1_0: VersionInfo!

Unicode 3.1.0 version

UNICODE_3_1_1

Added in API level 24
static val UNICODE_3_1_1: VersionInfo!

Unicode 3.1.1 version

UNICODE_3_2

Added in API level 24
static val UNICODE_3_2: VersionInfo!

Unicode 3.2 version

UNICODE_4_0

Added in API level 24
static val UNICODE_4_0: VersionInfo!

Unicode 4.0 version

UNICODE_4_0_1

Added in API level 24
static val UNICODE_4_0_1: VersionInfo!

Unicode 4.0.1 version

UNICODE_4_1

Added in API level 24
static val UNICODE_4_1: VersionInfo!

Unicode 4.1 version

UNICODE_5_0

Added in API level 24
static val UNICODE_5_0: VersionInfo!

Unicode 5.0 version

UNICODE_5_1

Added in API level 24
static val UNICODE_5_1: VersionInfo!

Unicode 5.1 version

UNICODE_5_2

Added in API level 24
static val UNICODE_5_2: VersionInfo!

Unicode 5.2 version

UNICODE_6_0

Added in API level 24
static val UNICODE_6_0: VersionInfo!

Unicode 6.0 version

UNICODE_6_1

Added in API level 24
static val UNICODE_6_1: VersionInfo!

Unicode 6.1 version

UNICODE_6_2

Added in API level 24
static val UNICODE_6_2: VersionInfo!

Unicode 6.2 version

UNICODE_6_3

Added in API level 24
static val UNICODE_6_3: VersionInfo!

Unicode 6.3 version

UNICODE_7_0

Added in API level 24
static val UNICODE_7_0: VersionInfo!

Unicode 7.0 version

UNICODE_8_0

Added in API level 24
static val UNICODE_8_0: VersionInfo!

Unicode 8.0 version

UNICODE_9_0

Added in API level 26
static val UNICODE_9_0: VersionInfo!

Unicode 9.0 version