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:
Status:
Stable ICU 4.0.
  • Constructor Details

    • PatternInfo

      public PatternInfo(String firstPart, String secondPart, boolean firstDateInPtnIsLaterDate)
      Constructs a PatternInfo 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.
      Status:
      Stable ICU 4.0.
  • Method Details

    • 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 this PatternInfo for equality.
      Overrides:
      equals in class Object
      Parameters:
      a - The object to be compared.
      Returns:
      true if the specified object is equal to this PatternInfo .
      Status:
      Stable ICU 4.0.
    • hashCode

      public int hashCode()
      Returns the hash code of this PatternInfo.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code value for this object.
      Status:
      Stable ICU 4.0.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Status:
      Stable ICU 4.0.