Added in API level 24

PatternInfo


class PatternInfo : Cloneable, Serializable
kotlin.Any
   ↳ android.icu.text.DateIntervalInfo.PatternInfo

PatternInfo class saves the first and second part of interval pattern, and whether the interval pattern is earlier date first.

Summary

Public constructors
PatternInfo(firstPart: String!, secondPart: String!, firstDateInPtnIsLaterDate: Boolean)

Constructs a PatternInfo object.

Public methods
Boolean
equals(other: Any?)

Compares the specified object with this PatternInfo for equality.

Boolean

Returns whether the first date in interval patter is later date or not.

String!

Returns the first part of interval pattern.

String!

Returns the second part of interval pattern.

Int

Returns the hash code of this PatternInfo.

String

Returns a string representation of the object.

Public constructors

PatternInfo

Added in API level 24
PatternInfo(
    firstPart: String!,
    secondPart: String!,
    firstDateInPtnIsLaterDate: Boolean)

Constructs a PatternInfo object.

Parameters
firstPart String!: The first part of interval pattern.
secondPart String!: The second part of interval pattern.
firstDateInPtnIsLaterDate Boolean: Whether the first date in interval patter is later date or not.

Public methods

equals

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

Compares the specified object with this PatternInfo for equality.

Parameters
obj the reference object with which to compare.
a The object to be compared.
Return
Boolean true if the specified object is equal to this PatternInfo.

firstDateInPtnIsLaterDate

Added in API level 24
fun firstDateInPtnIsLaterDate(): Boolean

Returns whether the first date in interval patter is later date or not.

Return
Boolean Whether the first date in interval patter is later date or not.

getFirstPart

Added in API level 24
fun getFirstPart(): String!

Returns the first part of interval pattern.

Return
String! The first part of interval pattern.

getSecondPart

Added in API level 24
fun getSecondPart(): String!

Returns the second part of interval pattern.

Return
String! The second part of interval pattern.

hashCode

Added in API level 24
fun hashCode(): Int

Returns the hash code of this PatternInfo.

Return
Int A hash code value for this object.

toString

Added in API level 24
fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.