Record Class GeometryCollection
java.lang.Object
java.lang.Record
io.micronaut.data.model.geo.GeometryCollection
- Record Components:
geometries- the geometries contained in this collection
- All Implemented Interfaces:
Geometry
@TypeDef(type=STRING,
converter=GeometryJsonConverter.class)
public record GeometryCollection(List<Geometry> geometries)
extends Record
implements Geometry
Represents a heterogeneous collection of
Geometry values.
This type follows the GeoJSON GeometryCollection model and can contain any supported Micronaut Data geometry implementation.
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryCollection(List<Geometry> geometries) Creates an instance of aGeometryCollectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeometriesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeometryCollection
Creates an instance of aGeometryCollectionrecord class.- Parameters:
geometries- the value for thegeometriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
geometries
Returns the value of thegeometriesrecord component.- Returns:
- the value of the
geometriesrecord component
-