public enum InfluxTimeUnit extends Enum<InfluxTimeUnit>
| Enum Constant and Description |
|---|
DAYS |
HOURS |
MICROSECONDS |
MINUTES |
SECONDS |
WEEKS |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
convertTo(TimeUnit targetUnit,
long value)
|
static InfluxTimeUnit |
findById(char id) |
char |
getId() |
static InfluxTimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InfluxTimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfluxTimeUnit MICROSECONDS
public static final InfluxTimeUnit SECONDS
public static final InfluxTimeUnit MINUTES
public static final InfluxTimeUnit HOURS
public static final InfluxTimeUnit DAYS
public static final InfluxTimeUnit WEEKS
public static InfluxTimeUnit[] values()
for (InfluxTimeUnit c : InfluxTimeUnit.values()) System.out.println(c);
public static InfluxTimeUnit 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 char getId()
public abstract long convertTo(TimeUnit targetUnit, long value)
targetUnit - the target TimeUnitvalue - the value in this InfluxTimeUnitTimeUnitpublic static InfluxTimeUnit findById(char id)
id - time unit idInfluxTimeUnit which id is id, null otherwiseCopyright © 2015 Red Hat, Inc.. All rights reserved.