Record Class TileId
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.geo.TileId
public record TileId(long overscaledZ, int wrap, long canonicalZ, long canonicalX, long canonicalY)
extends Record
Overscaled tile identity copied from native event payloads.
-
Constructor Summary
ConstructorsConstructorDescriptionTileId(long overscaledZ, int wrap, long canonicalZ, long canonicalX, long canonicalY) Creates an instance of aTileIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecanonicalXrecord component.longReturns the value of thecanonicalYrecord component.longReturns the value of thecanonicalZrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theoverscaledZrecord component.final StringtoString()Returns a string representation of this record class.intwrap()Returns the value of thewraprecord component.
-
Constructor Details
-
TileId
public TileId(long overscaledZ, int wrap, long canonicalZ, long canonicalX, long canonicalY) Creates an instance of aTileIdrecord class.- Parameters:
overscaledZ- the value for theoverscaledZrecord componentwrap- the value for thewraprecord componentcanonicalZ- the value for thecanonicalZrecord componentcanonicalX- the value for thecanonicalXrecord componentcanonicalY- the value for thecanonicalYrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
overscaledZ
public long overscaledZ()Returns the value of theoverscaledZrecord component.- Returns:
- the value of the
overscaledZrecord component
-
wrap
public int wrap()Returns the value of thewraprecord component.- Returns:
- the value of the
wraprecord component
-
canonicalZ
public long canonicalZ()Returns the value of thecanonicalZrecord component.- Returns:
- the value of the
canonicalZrecord component
-
canonicalX
public long canonicalX()Returns the value of thecanonicalXrecord component.- Returns:
- the value of the
canonicalXrecord component
-
canonicalY
public long canonicalY()Returns the value of thecanonicalYrecord component.- Returns:
- the value of the
canonicalYrecord component
-