Package types.generated
Record Class S2Cell
java.lang.Object
java.lang.Record
types.generated.S2Cell
A cell of the S2 grid, the base type of TS2Cell and S2CellSet, passed by value as H3Index is.
MEOS passes it by value, as its C type S2CellId: 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 MEOSs2cell_as_hexwkb.asText()asText, through MEOSs2cell_out.byte[]asWKB(byte variant) asWKB, through MEOSs2cell_as_wkb.final booleanIndicates whether some other object is "equal to" this one.static S2CellfromHexWKB(String hexwkb) fromHexWKB, through MEOSs2cell_from_hexwkb.static S2CellfromText, through MEOSs2cell_in.static S2CellfromWKB(byte[] wkb) fromWKB, through MEOSs2cell_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
-
S2Cell
public S2Cell(long value) Creates an instance of aS2Cellrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
asHexWKB
asHexWKB, through MEOSs2cell_as_hexwkb. -
fromHexWKB
fromHexWKB, through MEOSs2cell_from_hexwkb. -
asText
asText, through MEOSs2cell_out. -
fromText
fromText, through MEOSs2cell_in. -
asWKB
public byte[] asWKB(byte variant) asWKB, through MEOSs2cell_as_wkb. -
fromWKB
fromWKB, through MEOSs2cell_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
-