Record Class RuntimeEvent
java.lang.Object
java.lang.Record
org.maplibre.nativejni.runtime.RuntimeEvent
public record RuntimeEvent(RuntimeEventType type, int rawType, RuntimeEventSourceType sourceType, int rawSourceType, Optional<RuntimeHandle> runtimeSource, Optional<MapHandle> mapSource, int code, int rawPayloadType, RuntimeEventPayload payload, String message)
extends Record
Event copied from a runtime's native event queue.
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeEvent(RuntimeEventType type, int rawType, RuntimeEventSourceType sourceType, int rawSourceType, Optional<RuntimeHandle> runtimeSource, Optional<MapHandle> mapSource, int code, int rawPayloadType, RuntimeEventPayload payload, String message) Creates an instance of aRuntimeEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themapSourcerecord component.message()Returns the value of themessagerecord component.payload()Returns the value of thepayloadrecord component.intReturns the value of therawPayloadTyperecord component.intReturns the value of therawSourceTyperecord component.intrawType()Returns the value of therawTyperecord component.Returns the value of theruntimeSourcerecord component.Returns the value of thesourceTyperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RuntimeEvent
public RuntimeEvent(RuntimeEventType type, int rawType, RuntimeEventSourceType sourceType, int rawSourceType, Optional<RuntimeHandle> runtimeSource, Optional<MapHandle> mapSource, int code, int rawPayloadType, RuntimeEventPayload payload, String message) Creates an instance of aRuntimeEventrecord class.- Parameters:
type- the value for thetyperecord componentrawType- the value for therawTyperecord componentsourceType- the value for thesourceTyperecord componentrawSourceType- the value for therawSourceTyperecord componentruntimeSource- the value for theruntimeSourcerecord componentmapSource- the value for themapSourcerecord componentcode- the value for thecoderecord componentrawPayloadType- the value for therawPayloadTyperecord componentpayload- the value for thepayloadrecord componentmessage- the value for themessagerecord 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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
rawType
public int rawType()Returns the value of therawTyperecord component.- Returns:
- the value of the
rawTyperecord component
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
rawSourceType
public int rawSourceType()Returns the value of therawSourceTyperecord component.- Returns:
- the value of the
rawSourceTyperecord component
-
runtimeSource
Returns the value of theruntimeSourcerecord component.- Returns:
- the value of the
runtimeSourcerecord component
-
mapSource
-
code
public int code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
rawPayloadType
public int rawPayloadType()Returns the value of therawPayloadTyperecord component.- Returns:
- the value of the
rawPayloadTyperecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-