Class XyLocation
java.lang.Object
org.opensearch.client.opensearch._types.XyLocation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<XyLocation.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class XyLocation
extends Object
implements TaggedUnion<XyLocation.Kind,Object>, PlainJsonSerializable
A two-dimensional Cartesian point specified by x and y coordinates. It can be represented in the following ways:
- As an
{x, y}object. - As an
[x, y]array. - As a string in
"x, y"or WKT point format.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final XyLocation.Kind_kind()Get the of the kind of variant held by this object.static XyLocation.Builderbuilder()Get thecartesianvariant value.coords()Get thecoordsvariant value.booleaninthashCode()booleanIs this variant instance of kindcartesian?booleanisCoords()Is this variant instance of kindcoords?booleanisText()Is this variant instance of kindtext?static XyLocationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) text()Get thetextvariant value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<XyLocation.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<XyLocation.Kind,Object>
-
of
-
isCartesian
public boolean isCartesian()Is this variant instance of kindcartesian? -
cartesian
Get thecartesianvariant value.- Throws:
IllegalStateException- if the current variant is not thecartesiankind.
-
isCoords
public boolean isCoords()Is this variant instance of kindcoords? -
coords
Get thecoordsvariant value.- Throws:
IllegalStateException- if the current variant is not thecoordskind.
-
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
IllegalStateException- if the current variant is not thetextkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-