Record Class RuntimeEventPayload.OfflineRegionResponseError
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.runtime.RuntimeEventPayload.OfflineRegionResponseError
- All Implemented Interfaces:
RuntimeEventPayload
- Enclosing interface:
RuntimeEventPayload
public static record RuntimeEventPayload.OfflineRegionResponseError(long regionId, ResourceErrorReason reason, int rawReason)
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
ConstructorsConstructorDescriptionOfflineRegionResponseError(long regionId, ResourceErrorReason reason, int rawReason) Creates an instance of aOfflineRegionResponseErrorrecord 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.intReturns the value of therawReasonrecord component.reason()Returns the value of thereasonrecord component.longregionId()Returns the value of theregionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OfflineRegionResponseError
Creates an instance of aOfflineRegionResponseErrorrecord class.- Parameters:
regionId- the value for theregionIdrecord componentreason- the value for thereasonrecord componentrawReason- the value for therawReasonrecord 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. -
regionId
public long regionId()Returns the value of theregionIdrecord component.- Returns:
- the value of the
regionIdrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
rawReason
public int rawReason()Returns the value of therawReasonrecord component.- Returns:
- the value of the
rawReasonrecord component
-