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)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object a)Override equalsbooleanfirstDateInPtnIsLaterDate()accessorStringgetFirstPart()accessorStringgetSecondPart()accessorinthashCode()Override hashcodeStringtoString()Deprecated.This API is ICU internal only.
-
-
-
Method Detail
-
getFirstPart
public String getFirstPart()
accessor
-
getSecondPart
public String getSecondPart()
accessor
-
firstDateInPtnIsLaterDate
public boolean firstDateInPtnIsLaterDate()
accessor
-
equals
public boolean equals(Object a)
Override equals- Overrides:
equalsin classObject- Parameters:
a- the object to compare this instance with.- Returns:
trueif the specified object is equal to thisObject;falseotherwise.- See Also:
Object.hashCode()
-
hashCode
public int hashCode()
Override hashcode- Overrides:
hashCodein classObject- Returns:
- this object's hash code.
- See Also:
Object.equals(java.lang.Object)
-
toString
@Deprecated public String toString()
Deprecated.This API is ICU internal only.Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
-