Package com.ibm.icu.text
Class DateIntervalInfo.PatternInfo
- java.lang.Object
-
- com.ibm.icu.text.DateIntervalInfo.PatternInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- DateIntervalInfo
public static final class DateIntervalInfo.PatternInfo extends Object implements Cloneable, Serializable
PatternInfo class saves the first and second part of interval pattern, and whether the interval pattern is earlier date first.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)
Constructs aPatternInfo
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object a)
Compares the specified object with thisPatternInfo
for equality.boolean
firstDateInPtnIsLaterDate()
Returns whether the first date in interval patter is later date or not.String
getFirstPart()
Returns the first part of interval pattern.String
getSecondPart()
Returns the second part of interval pattern.int
hashCode()
Returns the hash code of thisPatternInfo
.String
toString()
Deprecated.This API is ICU internal only.
-
-
-
Constructor Detail
-
PatternInfo
public PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)
Constructs aPatternInfo
object.- Parameters:
firstPart
- The first part of interval pattern.secondPart
- The second part of interval pattern.firstDateInPtnIsLaterDate
- Whether the first date in interval patter is later date or not.
-
-
Method Detail
-
getFirstPart
public String getFirstPart()
Returns the first part of interval pattern.- Returns:
- The first part of interval pattern.
-
getSecondPart
public String getSecondPart()
Returns the second part of interval pattern.- Returns:
- The second part of interval pattern.
-
firstDateInPtnIsLaterDate
public boolean firstDateInPtnIsLaterDate()
Returns whether the first date in interval patter is later date or not.- Returns:
- Whether the first date in interval patter is later date or not.
-
equals
public boolean equals(Object a)
Compares the specified object with thisPatternInfo
for equality.
-
hashCode
public int hashCode()
Returns the hash code of thisPatternInfo
.
-
toString
@Deprecated public String toString()
Deprecated.This API is ICU internal only.
-
-