Skip navigation links
LuciadLightspeed
2020.1.22
com.luciad.text

LuciadLightspeedClass TLcdDurationFormat

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.text.Format

        java.text.Format.Field
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String LONG_SEPARATORS_PATTERN
      Same as MINIMUM_PATTERN but with longer separators, with a distinction between the singular form and the plural one.
      d {day :days } h {hour :hours } m {minute :minutes } s.f {second :seconds }
      static java.lang.String MINIMUM_PATTERN
      This pattern only displays the items with a value above 0.
      d {d } h {h } m {m } s.f {s}
      static java.lang.String NON_ZERO_ONLY
      This pattern displays every element and trims the expression left and right the values equal to 0.
      DD {d } HH {h } MM {m } SS.f {s} TLR
    • Constructor Summary

      Constructors 
      Constructor and Description
      TLcdDurationFormat()
      Creates a new TLcdDurationFormat that will use a default pattern and Locale.
      TLcdDurationFormat(java.lang.String aPattern)
      Creates a new TLcdDurationFormat that will use the specified pattern and a default Locale.
      TLcdDurationFormat(java.lang.String aPattern, java.util.Locale aLocale)
      Creates a new TLcdDurationFormat that will use the specified pattern and the specified locale.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object aO) 
      java.lang.StringBuffer format(java.lang.Object aObject, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos) 
      java.lang.String getPattern()
      Returns the pattern used to format Strings into ILcdISO19103Measure instances.
      int hashCode() 
      java.lang.Object parseObject(java.lang.String aSource, java.text.ParsePosition pos) 
      java.lang.String toString() 
      • Methods inherited from class java.text.Format

        clone, format, formatToCharacterIterator, parseObject
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • MINIMUM_PATTERN

        public static final java.lang.String MINIMUM_PATTERN
        This pattern only displays the items with a value above 0.
        d {d } h {h } m {m } s.f {s}
        See Also:
        Constant Field Values
      • LONG_SEPARATORS_PATTERN

        public static final java.lang.String LONG_SEPARATORS_PATTERN
        Same as MINIMUM_PATTERN but with longer separators, with a distinction between the singular form and the plural one.
        d {day :days } h {hour :hours } m {minute :minutes } s.f {second :seconds }
        See Also:
        Constant Field Values
      • NON_ZERO_ONLY

        public static final java.lang.String NON_ZERO_ONLY
        This pattern displays every element and trims the expression left and right the values equal to 0.
        DD {d } HH {h } MM {m } SS.f {s} TLR
        See Also:
        Constant Field Values
    • Constructor Detail

      • TLcdDurationFormat

        public TLcdDurationFormat()
        Creates a new TLcdDurationFormat that will use a default pattern and Locale.
      • TLcdDurationFormat

        public TLcdDurationFormat(java.lang.String aPattern)
        Creates a new TLcdDurationFormat that will use the specified pattern and a default Locale.
        Parameters:
        aPattern - is the string representing the formatting pattern, as defined in the class documentation.
        Throws:
        java.lang.IllegalArgumentException - When aPattern is not a valid pattern.
        java.lang.NullPointerException - when aPattern is null.
      • TLcdDurationFormat

        public TLcdDurationFormat(java.lang.String aPattern,
                                  java.util.Locale aLocale)
        Creates a new TLcdDurationFormat that will use the specified pattern and the specified locale.
        Parameters:
        aPattern - is the string representing the formatting pattern, as defined in the class documentation.
        aLocale - the Locale to be used to parse and format.
        Throws:
        java.lang.IllegalArgumentException - When aPattern is not a valid pattern.
        java.lang.NullPointerException - when aPattern or aLocale is null.
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Returns the pattern used to format Strings into ILcdISO19103Measure instances.
        Returns:
        the pattern as a string.
      • format

        public java.lang.StringBuffer format(java.lang.Object aObject,
                                             java.lang.StringBuffer toAppendTo,
                                             java.text.FieldPosition pos)
        Specified by:
        format in class java.text.Format
      • parseObject

        public java.lang.Object parseObject(java.lang.String aSource,
                                            java.text.ParsePosition pos)
        Specified by:
        parseObject in class java.text.Format
      • equals

        public boolean equals(java.lang.Object aO)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
LuciadLightspeed
2020.1.22