public enum TimeResolution extends Enum<TimeResolution>
| Enum Constant and Description |
|---|
DAYS
Day resolution.
|
HOURS
Hour resolution.
|
MILLISECONDS
Millisecond resolution.
|
MINUTES
Minute Resolution.
|
SECONDS
Second resolution.
|
| Modifier and Type | Method and Description |
|---|---|
TimeResolution |
parseTimeResolution(String value)
Parse
value as a TimeResolution value. |
abstract long |
toMillis(long value)
Convert
value to milliseconds. |
static TimeResolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeResolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeResolution MILLISECONDS
public static final TimeResolution SECONDS
public static final TimeResolution MINUTES
public static final TimeResolution HOURS
public static final TimeResolution DAYS
public static TimeResolution[] values()
for (TimeResolution c : TimeResolution.values()) System.out.println(c);
public static TimeResolution 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 abstract long toMillis(long value)
value to milliseconds.public TimeResolution parseTimeResolution(String value)
value as a TimeResolution value.
Returns this if value is null
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.