Class PrecisionType

    • Nested Class Summary

      • Nested classes/interfaces inherited from class CodeList

        CodeList.Filter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      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.
    • 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 arithmetic (rather then a grid).
        Returns:
        true if floating point arithmetic 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 codes of the same kind than this code list element. Invoking this method is equivalent to invoking values(), except that this method can be invoked on an instance of the parent CodeList class.
        Specified by:
        family in interface ControlledVocabulary
        Specified by:
        family in class CodeList<PrecisionType>
        Returns:
        all code values for this code list.
      • 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. More specifically, this methods returns the first instance for which name().equals(code) returns true. If no existing instance is found, then a new one is created for the given name.
        Parameters:
        code - the name of the code to fetch or to create.
        Returns:
        a code matching the given name.