|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DateTimeAccuracy>
org.fudgemsg.types.DateTimeAccuracy
public enum DateTimeAccuracy
Granularity options for DateTimeFieldType
and TimeFieldType
.
Enum Constant Summary | |
---|---|
CENTURY
Century precision. |
|
DAY
Day precision. |
|
HOUR
Hour precision. |
|
MICROSECOND
Microsecond precision. |
|
MILLENIUM
Millenia precision. |
|
MILLISECOND
Millisecond precision. |
|
MINUTE
Minute precision. |
|
MONTH
Month precision. |
|
NANOSECOND
Nanosecond precision. |
|
SECOND
Second precision. |
|
YEAR
Year precision. |
Method Summary | |
---|---|
boolean |
greaterThan(DateTimeAccuracy accuracy)
Tests if this accuracy is a greater precision than another. |
boolean |
lessThan(DateTimeAccuracy accuracy)
Tests is this accuracy is a lower precision than another. |
static DateTimeAccuracy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DateTimeAccuracy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DateTimeAccuracy MILLENIUM
public static final DateTimeAccuracy CENTURY
public static final DateTimeAccuracy YEAR
public static final DateTimeAccuracy MONTH
public static final DateTimeAccuracy DAY
public static final DateTimeAccuracy HOUR
public static final DateTimeAccuracy MINUTE
public static final DateTimeAccuracy SECOND
public static final DateTimeAccuracy MILLISECOND
public static final DateTimeAccuracy MICROSECOND
public static final DateTimeAccuracy NANOSECOND
Method Detail |
---|
public static DateTimeAccuracy[] values()
for (DateTimeAccuracy c : DateTimeAccuracy.values()) System.out.println(c);
public static DateTimeAccuracy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean greaterThan(DateTimeAccuracy accuracy)
accuracy
- other accuracy
true
if greater, false
otherwisepublic boolean lessThan(DateTimeAccuracy accuracy)
accuracy
- other accuracy
true
if lower, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |