Record Class OgrFeature
java.lang.Object
java.lang.Record
ch.so.agi.gdal.ffm.OgrFeature
public record OgrFeature(long fid, Map<String,Object> attributes, OgrGeometry geometry)
extends Record
Neutral feature DTO for stream-oriented OGR integrations.
-
Constructor Summary
ConstructorsConstructorDescriptionOgrFeature(long fid, Map<String, Object> attributes, OgrGeometry geometry) Creates an instance of aOgrFeaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.longfid()Returns the value of thefidrecord component.geometry()Returns the value of thegeometryrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OgrFeature
Creates an instance of aOgrFeaturerecord class.- Parameters:
fid- the value for thefidrecord componentattributes- the value for theattributesrecord componentgeometry- the value for thegeometryrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
fid
public long fid()Returns the value of thefidrecord component.- Returns:
- the value of the
fidrecord component
-
attributes
-
geometry
Returns the value of thegeometryrecord component.- Returns:
- the value of the
geometryrecord component
-