public class Decimal extends AbstractDecimal
PropertyKey
instead of using Double since decimals have a fixed number of decimals places, namely 3, and as such allow
for order preserving serialization.
In other words, use this data type when only up to 3 decimal places are needed and ordering is important in the definition
of vertex centric indices.Precision,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
Decimal.DecimalSerializer |
AbstractDecimal.AbstractDecimalSerializer<V extends AbstractDecimal>| Modifier and Type | Field and Description |
|---|---|
static int |
DECIMALS |
static Decimal |
MAX_VALUE |
static Decimal |
MIN_VALUE |
EPSILON, MAX_DECIMALS| Constructor and Description |
|---|
Decimal(double value) |
compareTo, convert, convert, doubleValue, equals, floatValue, getDecimalsOnly, hashCode, intValue, longValue, maxDoubleValue, minDoubleValue, toString, withinRangebyteValue, shortValuepublic static final int DECIMALS
public static final Decimal MIN_VALUE
public static final Decimal MAX_VALUE
Copyright © 2012–2014. All rights reserved.