Record Class RuntimeEventPayload.RenderFrame
java.lang.Object
java.lang.Record
org.maplibre.nativejni.runtime.RuntimeEventPayload.RenderFrame
- All Implemented Interfaces:
RuntimeEventPayload
- Enclosing interface:
RuntimeEventPayload
public static record RuntimeEventPayload.RenderFrame(RenderMode mode, int rawMode, boolean needsRepaint, boolean placementChanged, RenderingStats stats)
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
ConstructorsConstructorDescriptionRenderFrame(RenderMode mode, int rawMode, boolean needsRepaint, boolean placementChanged, RenderingStats stats) Creates an instance of aRenderFramerecord 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.mode()Returns the value of themoderecord component.booleanReturns the value of theneedsRepaintrecord component.booleanReturns the value of theplacementChangedrecord component.intrawMode()Returns the value of therawModerecord component.stats()Returns the value of thestatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderFrame
public RenderFrame(RenderMode mode, int rawMode, boolean needsRepaint, boolean placementChanged, RenderingStats stats) Creates an instance of aRenderFramerecord class.- Parameters:
mode- the value for themoderecord componentrawMode- the value for therawModerecord componentneedsRepaint- the value for theneedsRepaintrecord componentplacementChanged- the value for theplacementChangedrecord componentstats- the value for thestatsrecord 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. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
rawMode
public int rawMode()Returns the value of therawModerecord component.- Returns:
- the value of the
rawModerecord component
-
needsRepaint
public boolean needsRepaint()Returns the value of theneedsRepaintrecord component.- Returns:
- the value of the
needsRepaintrecord component
-
placementChanged
public boolean placementChanged()Returns the value of theplacementChangedrecord component.- Returns:
- the value of the
placementChangedrecord component
-
stats
Returns the value of thestatsrecord component.- Returns:
- the value of the
statsrecord component
-