Most visited

Recently visited

Added in API level 24

DateIntervalInfo.PatternInfo

public static final class DateIntervalInfo.PatternInfo
extends Object implements Cloneable, Serializable

java.lang.Object
    android.icu.text.DateIntervalInfo.PatternInfo


PatternInfo类保存间隔模式的第一部分和第二部分,以及间隔模式是否早于优先。

摘要(Summary)

Public constructors

DateIntervalInfo.PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)

构造一个 PatternInfo对象。

公共方法(Public methods)

boolean equals(Object a)

将指定的对象与此 PatternInfo比较。

boolean firstDateInPtnIsLaterDate()

返回时间间隔模式中的第一个日期是否为更晚的日期。

String getFirstPart()

返回间隔模式的第一部分。

String getSecondPart()

返回间隔模式的第二部分。

int hashCode()

返回这个 PatternInfo的哈希码。

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

DateIntervalInfo.PatternInfo

Added in API level 24
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.

公共方法(Public methods)

equals

Added in API level 24
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.

firstDateInPtnIsLaterDate

Added in API level 24
boolean firstDateInPtnIsLaterDate ()

返回时间间隔模式中的第一个日期是否为更晚的日期。

返回(Returns)
boolean Whether the first date in interval patter is later date or not.

getFirstPart

Added in API level 24
String getFirstPart ()

返回间隔模式的第一部分。

返回(Returns)
String The first part of interval pattern.

getSecondPart

Added in API level 24
String getSecondPart ()

返回间隔模式的第二部分。

返回(Returns)
String The second part of interval pattern.

hashCode

Added in API level 24
int hashCode ()

返回这个 PatternInfo的哈希码。

返回(Returns)
int A hash code value for this object.

Hooray!