public abstract class ValueType<T extends Number> extends Number
| Constructor and Description |
|---|
ValueType() |
| Modifier and Type | Method and Description |
|---|---|
static ValueType<?> |
compose(ByteBuffer data) |
static ValueType<?> |
compose(Number number,
MetricType type) |
static ByteBuffer |
decompose(ValueType<?> value) |
abstract ValueType<T> |
delta(Number value) |
abstract ValueType<T> |
divideBy(Number value) |
abstract double |
doubleValue() |
boolean |
equals(Object o) |
abstract float |
floatValue() |
abstract MetricType |
getType() |
abstract int |
intValue() |
boolean |
isNan() |
abstract long |
longValue() |
abstract ValueType<T> |
minus(Number value) |
abstract ValueType<T> |
plus(Number value) |
abstract ValueType<T> |
times(Number value) |
String |
toString() |
byteValue, shortValuepublic boolean isNan()
public abstract MetricType getType()
public abstract float floatValue()
floatValue in class Numberpublic abstract double doubleValue()
doubleValue in class Numberpublic static ValueType<?> compose(Number number, MetricType type)
public static ValueType<?> compose(ByteBuffer data)
public static ByteBuffer decompose(ValueType<?> value)
Copyright © 2015. All rights reserved.