Enum DateTools.Resolution

    • Enum Constant Detail

      • YEAR

        public static final DateTools.Resolution YEAR
        Limit a date's resolution to year granularity.
      • MONTH

        public static final DateTools.Resolution MONTH
        Limit a date's resolution to month granularity.
      • HOUR

        public static final DateTools.Resolution HOUR
        Limit a date's resolution to hour granularity.
      • MINUTE

        public static final DateTools.Resolution MINUTE
        Limit a date's resolution to minute granularity.
      • SECOND

        public static final DateTools.Resolution SECOND
        Limit a date's resolution to second granularity.
      • MILLISECOND

        public static final DateTools.Resolution MILLISECOND
        Limit a date's resolution to millisecond granularity.
    • Method Detail

      • values

        public static DateTools.Resolution[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DateTools.Resolution c : DateTools.Resolution.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DateTools.Resolution valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null