Record Class LogRecord
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.log.LogRecord
public record LogRecord(LogSeverity severity, int rawSeverity, LogEvent event, int rawEvent, long code, String message)
extends Record
Copied Maplibre Native log record delivered to a Java log callback.
-
Constructor Summary
ConstructorsConstructorDescriptionLogRecord(LogSeverity severity, int rawSeverity, LogEvent event, int rawEvent, long code, String message) Creates an instance of aLogRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.intrawEvent()Returns the value of therawEventrecord component.intReturns the value of therawSeverityrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogRecord
public LogRecord(LogSeverity severity, int rawSeverity, LogEvent event, int rawEvent, long code, String message) Creates an instance of aLogRecordrecord class.- Parameters:
severity- the value for theseverityrecord componentrawSeverity- the value for therawSeverityrecord componentevent- the value for theeventrecord componentrawEvent- the value for therawEventrecord componentcode- the value for thecoderecord 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. -
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
rawSeverity
public int rawSeverity()Returns the value of therawSeverityrecord component.- Returns:
- the value of the
rawSeverityrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
rawEvent
public int rawEvent()Returns the value of therawEventrecord component.- Returns:
- the value of the
rawEventrecord component
-
code
public long code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-