public static enum DateTools.Resolution extends Enum<DateTools.Resolution>
Enum Constant and Description |
---|
DAY
Limit a date's resolution to day granularity.
|
HOUR
Limit a date's resolution to hour granularity.
|
MILLISECOND
Limit a date's resolution to millisecond granularity.
|
MINUTE
Limit a date's resolution to minute granularity.
|
MONTH
Limit a date's resolution to month granularity.
|
SECOND
Limit a date's resolution to second granularity.
|
YEAR
Limit 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-2019 Apache Software Foundation. All Rights Reserved.