Record Class Feature
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.geo.Feature
public record Feature(Geometry geometry, List<JsonValue.Member> properties, FeatureIdentifier identifier)
extends Record
Immutable GeoJSON feature descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionFeature(Geometry geometry, List<JsonValue.Member> properties) Feature(Geometry geometry, List<JsonValue.Member> properties, FeatureIdentifier identifier) Creates an instance of aFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.geometry()Returns the value of thegeometryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Feature
Creates an instance of aFeaturerecord class.- Parameters:
geometry- the value for thegeometryrecord componentproperties- the value for thepropertiesrecord componentidentifier- the value for theidentifierrecord component
-
Feature
-
-
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). -
geometry
Returns the value of thegeometryrecord component.- Returns:
- the value of the
geometryrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-