Class GeoBounds
java.lang.Object
co.elastic.clients.elasticsearch._types.GeoBounds
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<GeoBounds.Kind,Object>
@JsonpDeserializable
public class GeoBounds
extends Object
implements TaggedUnion<GeoBounds.Kind,Object>, JsonpSerializable
A geo bounding box. It can be represented in various ways:
- as 4 top/bottom/left/right coordinates
- as 2 top_left / bottom_right points
- as 2 top_right / bottom_left points
- as a WKT bounding box
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final GeoBounds.Kind_kind()Get the of the kind of variant held by this object.coords()Get thecoordsvariant value.booleanisCoords()Is this variant instance of kindcoords?booleanisTlbr()Is this variant instance of kindtlbr?booleanisTrbl()Is this variant instance of kindtrbl?booleanisWkt()Is this variant instance of kindwkt?static GeoBoundsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) tlbr()Get thetlbrvariant value.toString()trbl()Get thetrblvariant value.wkt()Get thewktvariant value.
-
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<GeoBounds.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<GeoBounds.Kind,Object>
-
of
-
isCoords
public boolean isCoords()Is this variant instance of kindcoords? -
coords
Get thecoordsvariant value.- Throws:
IllegalStateException- if the current variant is not of thecoordskind.
-
isTlbr
public boolean isTlbr()Is this variant instance of kindtlbr? -
tlbr
Get thetlbrvariant value.- Throws:
IllegalStateException- if the current variant is not of thetlbrkind.
-
isTrbl
public boolean isTrbl()Is this variant instance of kindtrbl? -
trbl
Get thetrblvariant value.- Throws:
IllegalStateException- if the current variant is not of thetrblkind.
-
isWkt
public boolean isWkt()Is this variant instance of kindwkt? -
wkt
Get thewktvariant value.- Throws:
IllegalStateException- if the current variant is not of thewktkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-