org.opengis.geometry
Class PrecisionType

Object
  extended by CodeList<PrecisionType>
      extended by PrecisionType
All Implemented Interfaces:
Serializable, Comparable<PrecisionType>

public final class PrecisionType
extends CodeList<PrecisionType>

The rounding policy used for a precision model.

Since:
GeoAPI 2.1
Author:
Jody Garnett
See Also:
Serialized Form

Field Summary
static PrecisionType DOUBLE
          Floating precision corresponds to the standard Java double-precision floating-point representation, which is based on the IEEE-754 standard.
static PrecisionType FIXED
          Fixed precision indicates that coordinates have a fixed number of decimal places.
static PrecisionType FLOAT
          Floating single precision corresponds to the standard Java single-precision floating-point representation, which is based on the IEEE-754 standard.
 
Method Summary
 PrecisionType[] family()
          Returns the list of enumerations of the same kind than this enum.
 boolean isFloating()
          Returns true if PrecisionModelType is a represented using floating point arithmatic (rather then a grid).
static PrecisionType valueOf(String code)
          Returns the precision type that matches the given string, or returns a new one if none match it.
static PrecisionType[] values()
          Returns the list of PrecisionModelTypes.
 
Methods inherited from class CodeList
compareTo, equals, identifier, matches, name, ordinal, readResolve, toString, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIXED

public static final PrecisionType FIXED
Fixed precision indicates that coordinates have a fixed number of decimal places.


DOUBLE

public static final PrecisionType DOUBLE
Floating precision corresponds to the standard Java double-precision floating-point representation, which is based on the IEEE-754 standard.


FLOAT

public static final PrecisionType FLOAT
Floating single precision corresponds to the standard Java single-precision floating-point representation, which is based on the IEEE-754 standard.

Method Detail

isFloating

public boolean isFloating()
Returns true if PrecisionModelType is a represented using floating point arithmatic (rather then a grid).

Returns:
true if floating point arithmatic is used.

values

public static PrecisionType[] values()
Returns the list of PrecisionModelTypes.

Returns:
The list of codes declared in the current JVM.

family

public PrecisionType[] family()
Returns the list of enumerations of the same kind than this enum.

Specified by:
family in class CodeList<PrecisionType>
Returns:
The codes of the same kind than this code.

valueOf

public static PrecisionType valueOf(String code)
Returns the precision type that matches the given string, or returns a new one if none match it.

Parameters:
code - The name of the code to fetch or to create.
Returns:
A code matching the given name.


Copyright © 1996-2014 Geotools. All Rights Reserved.