com.thinkaurelius.titan.core.attribute

## Class Precision

- java.lang.Object
- - java.lang.Number
  - - com.thinkaurelius.titan.graphdb.database.serialize.attribute.AbstractDecimal
    - - com.thinkaurelius.titan.core.attribute.Precision

- All Implemented Interfaces:
    Serializable, Comparable<AbstractDecimal>

      public class Precision
      extends AbstractDecimal

  Data type for a decimal value that can be used in the definition of a `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.
  Author:
    Matthias Broecheler (me@matthiasb.com)
  See Also:
    `Decimal`, Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Precision.PrecisionSerializer`

    - ### Nested classes/interfaces inherited from class com.thinkaurelius.titan.graphdb.database.serialize.attribute.AbstractDecimal

      `AbstractDecimal.AbstractDecimalSerializer<V extends AbstractDecimal>`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `DECIMALS`
    `static Precision` | `MAX_VALUE`
    `static Precision` | `MIN_VALUE`

    - ### Fields inherited from class com.thinkaurelius.titan.graphdb.database.serialize.attribute.AbstractDecimal

      `EPSILON, MAX_DECIMALS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Precision(double value)`

  - ### Method Summary

    - ### Methods inherited from class com.thinkaurelius.titan.graphdb.database.serialize.attribute.AbstractDecimal

      `compareTo, convert, convert, doubleValue, equals, floatValue, getDecimalsOnly, hashCode, intValue, longValue, maxDoubleValue, minDoubleValue, toString, withinRange`

    - ### Methods inherited from class java.lang.Number

      `byteValue, shortValue`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### DECIMALS

          public static final int DECIMALS

      See Also:
        Constant Field Values

    - #### MIN_VALUE

          public static final Precision MIN_VALUE

    - #### MAX_VALUE

          public static final Precision MAX_VALUE

  - ### Constructor Detail

    - #### Precision

          public Precision(double value)

Copyright © 2012–2014. All rights reserved.