Enum Ordinate

java.lang.Object
java.lang.Enum<Ordinate>
org.locationtech.jts.io.Ordinate
All Implemented Interfaces:
Serializable, Comparable<Ordinate>, java.lang.constant.Constable

public enum Ordinate extends Enum<Ordinate>
An enumeration of possible Well-Known-Text or Well-Known-Binary ordinates.

Intended to be used as an EnumSet<Ordinate>, optimized create methods have been provided for createXY(), createXYM(), createXYZ() and createXYZM().

  • Enum Constant Details

    • X

      public static final Ordinate X
      X-ordinate
    • Y

      public static final Ordinate Y
      Y-ordinate
    • Z

      public static final Ordinate Z
      Z-ordinate
    • M

      public static final Ordinate M
      Measure-ordinate
  • Method Details

    • values

      public static Ordinate[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Ordinate valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • createXY

      public static EnumSet<Ordinate> createXY()
      EnumSet of X and Y ordinates, a copy is returned as EnumSets are not immutable.
      Returns:
      EnumSet of X and Y ordinates.
    • createXYZ

      public static EnumSet<Ordinate> createXYZ()
      EnumSet of XYZ ordinates, a copy is returned as EnumSets are not immutable.
      Returns:
      EnumSet of X and Y ordinates.
    • createXYM

      public static EnumSet<Ordinate> createXYM()
      EnumSet of XYM ordinates, a copy is returned as EnumSets are not immutable.
      Returns:
      EnumSet of X and Y ordinates.
    • createXYZM

      public static EnumSet<Ordinate> createXYZM()
      EnumSet of XYZM ordinates, a copy is returned as EnumSets are not immutable.
      Returns:
      EnumSet of X and Y ordinates.