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
- Status:
- Stable ICU 4.0.
-
-
Constructor Summary
Constructors Constructor Description PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)Constructs aPatternInfoobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object a)Compares the specified object with thisPatternInfofor equality.booleanfirstDateInPtnIsLaterDate()Returns whether the first date in interval patter is later date or not.StringgetFirstPart()Returns the first part of interval pattern.StringgetSecondPart()Returns the second part of interval pattern.inthashCode()Returns the hash code of thisPatternInfo.StringtoString()
-
-
-
Constructor Detail
-
PatternInfo
public PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)
Constructs aPatternInfoobject.- 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.- Status:
- Stable ICU 4.0.
-
-
Method Detail
-
getFirstPart
public String getFirstPart()
Returns the first part of interval pattern.- Returns:
- The first part of interval pattern.
- Status:
- Stable ICU 4.0.
-
getSecondPart
public String getSecondPart()
Returns the second part of interval pattern.- Returns:
- The second part of interval pattern.
- Status:
- Stable ICU 4.0.
-
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.
- Status:
- Stable ICU 4.0.
-
equals
public boolean equals(Object a)
Compares the specified object with thisPatternInfofor equality.
-
hashCode
public int hashCode()
Returns the hash code of thisPatternInfo.
-
-