Record Class ShapeRecord
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.core.ShapeRecord
public record ShapeRecord(int recordNumber, ShapeType shapeType, ByteBuffer content, Bounds bounds)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionShapeRecord(int recordNumber, ShapeType shapeType, ByteBuffer content, Bounds bounds) Creates an instance of aShapeRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therecordNumberrecord component.Returns the value of theshapeTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShapeRecord
Creates an instance of aShapeRecordrecord class.- Parameters:
recordNumber- the value for therecordNumberrecord componentshapeType- the value for theshapeTyperecord componentcontent- the value for thecontentrecord componentbounds- the value for theboundsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
recordNumber
public int recordNumber()Returns the value of therecordNumberrecord component.- Returns:
- the value of the
recordNumberrecord component
-
shapeType
Returns the value of theshapeTyperecord component.- Returns:
- the value of the
shapeTyperecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-