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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Object
_get()
final GeoBounds.Kind
_kind()
Get the of the kind of variant held by this object.coords()
Get thecoords
variant value.boolean
isCoords()
Is this variant instance of kindcoords
?boolean
isTlbr()
Is this variant instance of kindtlbr
?boolean
isTrbl()
Is this variant instance of kindtrbl
?boolean
isWkt()
Is this variant instance of kindwkt
?static GeoBounds
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) tlbr()
Get thetlbr
variant value.toString()
trbl()
Get thetrbl
variant value.wkt()
Get thewkt
variant value.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<GeoBounds.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<GeoBounds.Kind,
Object>
-
of
-
isCoords
public boolean isCoords()Is this variant instance of kindcoords
? -
coords
Get thecoords
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecoords
kind.
-
isTlbr
public boolean isTlbr()Is this variant instance of kindtlbr
? -
tlbr
Get thetlbr
variant value.- Throws:
IllegalStateException
- if the current variant is not of thetlbr
kind.
-
isTrbl
public boolean isTrbl()Is this variant instance of kindtrbl
? -
trbl
Get thetrbl
variant value.- Throws:
IllegalStateException
- if the current variant is not of thetrbl
kind.
-
isWkt
public boolean isWkt()Is this variant instance of kindwkt
? -
wkt
Get thewkt
variant value.- Throws:
IllegalStateException
- if the current variant is not of thewkt
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
toString
-