public static enum DateTools.Resolution extends Enum<DateTools.Resolution>
| Enum Constant and Description | 
|---|
| DAYLimit a date's resolution to day granularity. | 
| HOURLimit a date's resolution to hour granularity. | 
| MILLISECONDLimit a date's resolution to millisecond granularity. | 
| MINUTELimit a date's resolution to minute granularity. | 
| MONTHLimit a date's resolution to month granularity. | 
| SECONDLimit a date's resolution to second granularity. | 
| YEARLimit a date's resolution to year granularity. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | toString()this method returns the name of the resolution
 in lowercase (for backwards compatibility) | 
| static DateTools.Resolution | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static DateTools.Resolution[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final DateTools.Resolution YEAR
public static final DateTools.Resolution MONTH
public static final DateTools.Resolution DAY
public static final DateTools.Resolution HOUR
public static final DateTools.Resolution MINUTE
public static final DateTools.Resolution SECOND
public static final DateTools.Resolution MILLISECOND
public static DateTools.Resolution[] values()
for (DateTools.Resolution c : DateTools.Resolution.values()) System.out.println(c);
public static DateTools.Resolution valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<DateTools.Resolution>Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.