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   | 
        |
| Public methods | |
|---|---|
| Boolean | 
            
             Compares the specified object with this   | 
        
| 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 | 
            hashCode()Returns the hash code of this   | 
        
| String | 
            toString()Returns a string representation of the object.  | 
        
Public constructors
PatternInfo
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
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
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
fun getFirstPart(): String!
Returns the first part of interval pattern.
| Return | |
|---|---|
String! | 
            The first part of interval pattern. | 
getSecondPart
fun getSecondPart(): String!
Returns the second part of interval pattern.
| Return | |
|---|---|
String! | 
            The second part of interval pattern. | 
hashCode
fun hashCode(): Int
Returns the hash code of this PatternInfo.
| Return | |
|---|---|
Int | 
            A hash code value for this object. | 
toString
fun toString(): String
Returns a string representation of the object.
| Return | |
|---|---|
String | 
            a string representation of the object. |