Package org.locationtech.jts.io
Enum Ordinate
- All Implemented Interfaces:
Serializable
,Comparable<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 Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioncreateXY()
EnumSet of X and Y ordinates, a copy is returned as EnumSets are not immutable.EnumSet of XYM ordinates, a copy is returned as EnumSets are not immutable.EnumSet of XYZ ordinates, a copy is returned as EnumSets are not immutable.EnumSet of XYZM ordinates, a copy is returned as EnumSets are not immutable.static Ordinate
Returns the enum constant of this type with the specified name.static Ordinate[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
X
X-ordinate -
Y
Y-ordinate -
Z
Z-ordinate -
M
Measure-ordinate
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
createXY
EnumSet of X and Y ordinates, a copy is returned as EnumSets are not immutable.- Returns:
- EnumSet of X and Y ordinates.
-
createXYZ
EnumSet of XYZ ordinates, a copy is returned as EnumSets are not immutable.- Returns:
- EnumSet of X and Y ordinates.
-
createXYM
EnumSet of XYM ordinates, a copy is returned as EnumSets are not immutable.- Returns:
- EnumSet of X and Y ordinates.
-
createXYZM
EnumSet of XYZM ordinates, a copy is returned as EnumSets are not immutable.- Returns:
- EnumSet of X and Y ordinates.
-