@Deprecated public enum InfluxTimeUnit extends Enum<InfluxTimeUnit>
| Enum Constant and Description |
|---|
DAYS
Deprecated.
|
HOURS
Deprecated.
|
MICROSECONDS
Deprecated.
|
MILLISECONDS
Deprecated.
|
MINUTES
Deprecated.
|
SECONDS
Deprecated.
|
WEEKS
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract long |
convert(long sourceValue,
InfluxTimeUnit sourceUnit)
Deprecated.
|
abstract long |
convertTo(TimeUnit targetUnit,
long value)
Deprecated.
|
static InfluxTimeUnit |
findById(String id)
Deprecated.
|
String |
getId()
Deprecated.
|
static InfluxTimeUnit |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static InfluxTimeUnit[] |
values()
Deprecated.
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 MILLISECONDS
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 String getId()
public abstract long convertTo(TimeUnit targetUnit, long value)
targetUnit - the target TimeUnitvalue - the value in this InfluxTimeUnitTimeUnitpublic abstract long convert(long sourceValue,
InfluxTimeUnit sourceUnit)
public static InfluxTimeUnit findById(String id)
id - time unit idInfluxTimeUnit which id is id, null otherwiseCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.