Package types.generated
Record Class H3Index
java.lang.Object
java.lang.Record
types.generated.H3Index
A cell of the H3 grid, the base type of TH3Index and H3IndexSet. MEOS passes it by value, as a uint64; it is a class all the same because it reads and writes formats of its own (text, WKB, hex WKB), and every type a binding exposes has its readers and writers.
MEOS passes it by value, as its C type H3Index: the record holds that value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasHexWKB(byte variant) asHexWKB, through MEOSh3index_as_hexwkb.asText()asText, through MEOSh3index_out.byte[]asWKB(byte variant) asWKB, through MEOSh3index_as_wkb.final booleanIndicates whether some other object is "equal to" this one.static H3IndexfromHexWKB(String hexwkb) fromHexWKB, through MEOSh3index_from_hexwkb.static H3IndexfromText, through MEOSh3index_in.static H3IndexfromWKB(byte[] wkb) fromWKB, through MEOSh3index_from_wkb.final inthashCode()Returns a hash code value for this object.toString()The text MEOS writes this value as.longvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final long valueThe field for thevaluerecord component.
-
-
Constructor Details
-
H3Index
public H3Index(long value) Creates an instance of aH3Indexrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
asHexWKB
asHexWKB, through MEOSh3index_as_hexwkb. -
fromHexWKB
fromHexWKB, through MEOSh3index_from_hexwkb. -
asText
asText, through MEOSh3index_out. -
fromText
fromText, through MEOSh3index_in. -
asWKB
public byte[] asWKB(byte variant) asWKB, through MEOSh3index_as_wkb. -
fromWKB
fromWKB, through MEOSh3index_from_wkb. -
toString
The text MEOS writes this value as. -
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 '=='. -
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-