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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatternInfo
(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate) Constructs aPatternInfo
object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with thisPatternInfo
for equality.boolean
Returns whether the first date in interval patter is later date or not.Returns the first part of interval pattern.Returns the second part of interval pattern.int
hashCode()
Returns the hash code of thisPatternInfo
.toString()
-
Field Details
-
currentSerialVersion
static final int currentSerialVersion- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fIntervalPatternFirstPart
-
fIntervalPatternSecondPart
-
fFirstDateInPtnIsLaterDate
private final boolean fFirstDateInPtnIsLaterDate
-
-
Constructor Details
-
PatternInfo
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 Details
-
getFirstPart
Returns the first part of interval pattern.- Returns:
- The first part of interval pattern.
-
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
Compares the specified object with thisPatternInfo
for equality. -
hashCode
public int hashCode()Returns the hash code of thisPatternInfo
. -
toString
-