public static final class DateIntervalInfo.PatternInfo
extends Object implements Cloneable, Serializable
| java.lang.Object | |
| android.icu.text.DateIntervalInfo.PatternInfo | |
PatternInfo类保存间隔模式的第一部分和第二部分,以及间隔模式是否早于优先。
Public constructors |
|
|---|---|
DateIntervalInfo.PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate) 构造一个 |
|
公共方法(Public methods) |
|
|---|---|
boolean |
equals(Object a) 将指定的对象与此 |
boolean |
firstDateInPtnIsLaterDate() 返回时间间隔模式中的第一个日期是否为更晚的日期。 |
String |
getFirstPart() 返回间隔模式的第一部分。 |
String |
getSecondPart() 返回间隔模式的第二部分。 |
int |
hashCode() 返回这个 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
DateIntervalInfo.PatternInfo (String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)
构造一个 PatternInfo对象。
| 参数(Parameters) | |
|---|---|
firstPart |
String: The first part of interval pattern. |
secondPart |
String: The second part of interval pattern. |
firstDateInPtnIsLaterDate |
boolean: Whether the first date in interval patter is later date or not. |
boolean equals (Object a)
将指定的对象与此 PatternInfo进行比较以获得相等性。
| 参数(Parameters) | |
|---|---|
a |
Object: The object to be compared. |
| 返回(Returns) | |
|---|---|
boolean |
true if the specified object is equal to this PatternInfo. |
boolean firstDateInPtnIsLaterDate ()
返回时间间隔模式中的第一个日期是否为更晚的日期。
| 返回(Returns) | |
|---|---|
boolean |
Whether the first date in interval patter is later date or not. |
String getFirstPart ()
返回间隔模式的第一部分。
| 返回(Returns) | |
|---|---|
String |
The first part of interval pattern. |
String getSecondPart ()
返回间隔模式的第二部分。
| 返回(Returns) | |
|---|---|
String |
The second part of interval pattern. |
int hashCode ()
返回这个 PatternInfo的哈希码。
| 返回(Returns) | |
|---|---|
int |
A hash code value for this object. |