Class TimeZoneNames.MatchInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      MatchInfo​(TimeZoneNames.NameType nameType, java.lang.String tzID, java.lang.String mzID, int matchLength)
      Constructing a MatchInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int matchLength()
      Returns the match length.
      java.lang.String mzID()
      Returns the meta zone ID, or null if not available.
      TimeZoneNames.NameType nameType()
      Returns the time zone name type.
      java.lang.String tzID()
      Returns the time zone ID, or null if not available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatchInfo

        public MatchInfo​(TimeZoneNames.NameType nameType,
                         java.lang.String tzID,
                         java.lang.String mzID,
                         int matchLength)
        Constructing a MatchInfo.
        Parameters:
        nameType - the name type enum.
        tzID - the time zone ID, or null
        mzID - the meta zone ID, or null
        matchLength - the match length.
        Throws:
        java.lang.IllegalArgumentException - when 1) nameType is null, or 2) both tzID and mzID are null, or 3) matchLength is 0 or smaller.
        See Also:
        TimeZoneNames.NameType
    • Method Detail

      • tzID

        public java.lang.String tzID()
        Returns the time zone ID, or null if not available.

        Note: A MatchInfo must have either a time zone ID or a meta zone ID.

        Returns:
        the time zone ID, or null.
        See Also:
        mzID()
      • mzID

        public java.lang.String mzID()
        Returns the meta zone ID, or null if not available.

        Note: A MatchInfo must have either a time zone ID or a meta zone ID.

        Returns:
        the meta zone ID, or null.
        See Also:
        tzID()
      • matchLength

        public int matchLength()
        Returns the match length.
        Returns:
        the match length.