public class Duration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_MAGNITUDE |
static String |
SERIALIZED_NAME_TYPE |
static String |
SERIALIZED_NAME_UNIT |
Constructor and Description |
---|
Duration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getMagnitude()
Get magnitude
|
String |
getType()
Type of AST node
|
String |
getUnit()
Get unit
|
int |
hashCode() |
Duration |
magnitude(Integer magnitude) |
void |
setMagnitude(Integer magnitude) |
void |
setType(String type) |
void |
setUnit(String unit) |
String |
toString() |
Duration |
type(String type) |
Duration |
unit(String unit) |
public static final String SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_MAGNITUDE
public static final String SERIALIZED_NAME_UNIT
public String getType()
public void setType(String type)
public Integer getMagnitude()
public void setMagnitude(Integer magnitude)
public String getUnit()
public void setUnit(String unit)
Copyright © 2018–2020 InfluxData, Inc.. All rights reserved.