public static enum OLuceneDateTools.Resolution extends Enum<OLuceneDateTools.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 |
---|---|
SimpleDateFormat |
format() |
String |
toString()
this method returns the name of the resolution in lowercase (for backwards compatibility)
|
static OLuceneDateTools.Resolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OLuceneDateTools.Resolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OLuceneDateTools.Resolution YEAR
public static final OLuceneDateTools.Resolution MONTH
public static final OLuceneDateTools.Resolution DAY
public static final OLuceneDateTools.Resolution HOUR
public static final OLuceneDateTools.Resolution MINUTE
public static final OLuceneDateTools.Resolution SECOND
public static final OLuceneDateTools.Resolution MILLISECOND
public static OLuceneDateTools.Resolution[] values()
for (OLuceneDateTools.Resolution c : OLuceneDateTools.Resolution.values()) System.out.println(c);
public static OLuceneDateTools.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 SimpleDateFormat format()
public String toString()
toString
in class Enum<OLuceneDateTools.Resolution>
Copyright © 2009–2020 OrientDB. All rights reserved.