Record Class ShxReader.ShxIndexEntry
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.core.ShxReader.ShxIndexEntry
- Enclosing class:
- ShxReader
public static record ShxReader.ShxIndexEntry(int offsetWords, int contentLengthWords)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionShxIndexEntry(int offsetWords, int contentLengthWords) Creates an instance of aShxIndexEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecontentLengthWordsrecord 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 theoffsetWordsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShxIndexEntry
public ShxIndexEntry(int offsetWords, int contentLengthWords) Creates an instance of aShxIndexEntryrecord class.- Parameters:
offsetWords- the value for theoffsetWordsrecord componentcontentLengthWords- the value for thecontentLengthWordsrecord 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. All components in this record class are compared with '=='. -
offsetWords
public int offsetWords()Returns the value of theoffsetWordsrecord component.- Returns:
- the value of the
offsetWordsrecord component
-
contentLengthWords
public int contentLengthWords()Returns the value of thecontentLengthWordsrecord component.- Returns:
- the value of the
contentLengthWordsrecord component
-