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