Record Class RuntimeEventPayload.TileAction
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.runtime.RuntimeEventPayload.TileAction
- All Implemented Interfaces:
RuntimeEventPayload
- Enclosing interface:
RuntimeEventPayload
public static record RuntimeEventPayload.TileAction(TileOperation operation, int rawOperation, TileId tileId, String sourceId)
extends Record
implements RuntimeEventPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface RuntimeEventPayload
RuntimeEventPayload.None, RuntimeEventPayload.OfflineOperationCompleted, RuntimeEventPayload.OfflineRegionResponseError, RuntimeEventPayload.OfflineRegionStatusChanged, RuntimeEventPayload.OfflineRegionTileCountLimit, RuntimeEventPayload.RenderFrame, RuntimeEventPayload.RenderMap, RuntimeEventPayload.StyleImageMissing, RuntimeEventPayload.TileAction, RuntimeEventPayload.Unknown -
Field Summary
Fields inherited from interface RuntimeEventPayload
NONE -
Constructor Summary
ConstructorsConstructorDescriptionTileAction(TileOperation operation, int rawOperation, TileId tileId, String sourceId) Creates an instance of aTileActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.intReturns the value of therawOperationrecord component.sourceId()Returns the value of thesourceIdrecord component.tileId()Returns the value of thetileIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TileAction
Creates an instance of aTileActionrecord class.- Parameters:
operation- the value for theoperationrecord componentrawOperation- the value for therawOperationrecord componenttileId- the value for thetileIdrecord componentsourceId- the value for thesourceIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
rawOperation
public int rawOperation()Returns the value of therawOperationrecord component.- Returns:
- the value of the
rawOperationrecord component
-
tileId
Returns the value of thetileIdrecord component.- Returns:
- the value of the
tileIdrecord component
-
sourceId
Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-