Package com.ibm.icu.text
Class DateIntervalInfo.PatternInfo
- java.lang.Object
-
- com.ibm.icu.text.DateIntervalInfo.PatternInfo
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- DateIntervalInfo
public static final class DateIntervalInfo.PatternInfo extends java.lang.Object implements java.lang.Cloneable, java.io.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(java.lang.String firstPart, java.lang.String secondPart, boolean firstDateInPtnIsLaterDate)
Constructs aPatternInfo
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.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.java.lang.String
getFirstPart()
Returns the first part of interval pattern.java.lang.String
getSecondPart()
Returns the second part of interval pattern.int
hashCode()
Returns the hash code of thisPatternInfo
.java.lang.String
toString()
-
-
-
Constructor Detail
-
PatternInfo
public PatternInfo(java.lang.String firstPart, java.lang.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 java.lang.String getFirstPart()
Returns the first part of interval pattern.- Returns:
- The first part of interval pattern.
-
getSecondPart
public java.lang.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(java.lang.Object a)
Compares the specified object with thisPatternInfo
for equality.- Overrides:
equals
in classjava.lang.Object
- Parameters:
a
- The object to be compared.- Returns:
true
if the specified object is equal to thisPatternInfo
.
-
hashCode
public int hashCode()
Returns the hash code of thisPatternInfo
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A hash code value for this object.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-