Enum ShapeBuilder.Orientation
- java.lang.Object
-
- java.lang.Enum<ShapeBuilder.Orientation>
-
- org.elasticsearch.common.geo.builders.ShapeBuilder.Orientation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ShapeBuilder.Orientation>
,java.lang.constant.Constable
- Enclosing class:
- ShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape,G extends Geometry,E extends ShapeBuilder<T,G,E>>
public static enum ShapeBuilder.Orientation extends java.lang.Enum<ShapeBuilder.Orientation>
-
-
Field Summary
Fields Modifier and Type Field Description static ShapeBuilder.Orientation
CCW
static ShapeBuilder.Orientation
CLOCKWISE
static ShapeBuilder.Orientation
COUNTER_CLOCKWISE
static ShapeBuilder.Orientation
CW
-
Method Summary
Modifier and Type Method Description static ShapeBuilder.Orientation
fromString(java.lang.String orientation)
static ShapeBuilder.Orientation
readFrom(StreamInput in)
static ShapeBuilder.Orientation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShapeBuilder.Orientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
writeTo(StreamOutput out)
-
-
-
Enum Constant Detail
-
LEFT
public static final ShapeBuilder.Orientation LEFT
-
RIGHT
public static final ShapeBuilder.Orientation RIGHT
-
-
Field Detail
-
CLOCKWISE
public static final ShapeBuilder.Orientation CLOCKWISE
-
COUNTER_CLOCKWISE
public static final ShapeBuilder.Orientation COUNTER_CLOCKWISE
-
CW
public static final ShapeBuilder.Orientation CW
-
CCW
public static final ShapeBuilder.Orientation CCW
-
-
Method Detail
-
values
public static ShapeBuilder.Orientation[] 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 ShapeBuilder.Orientation valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public static ShapeBuilder.Orientation readFrom(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
fromString
public static ShapeBuilder.Orientation fromString(java.lang.String orientation)
-
-