Package com.soulfiremc.shared
Record Class SFLogAppender.SFLogEvent
java.lang.Object
java.lang.Record
com.soulfiremc.shared.SFLogAppender.SFLogEvent
- Enclosing class:
SFLogAppender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable UUID
Returns the value of thebotAccountId
record component.final boolean
Indicates whether some other object is "equal to" this one.static SFLogAppender.SFLogEvent
final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.@Nullable UUID
Returns the value of theinstanceId
record component.message()
Returns the value of themessage
record component.@Nullable UUID
scriptId()
Returns the value of thescriptId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SFLogEvent
public SFLogEvent(String id, String message, @Nullable UUID instanceId, @Nullable UUID botAccountId, @Nullable UUID scriptId) Creates an instance of aSFLogEvent
record class.- Parameters:
id
- the value for theid
record componentmessage
- the value for themessage
record componentinstanceId
- the value for theinstanceId
record componentbotAccountId
- the value for thebotAccountId
record componentscriptId
- the value for thescriptId
record component
-
-
Method Details
-
fromEvent
public static SFLogAppender.SFLogEvent fromEvent(org.apache.logging.log4j.core.LogEvent event, String formatted) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
instanceId
Returns the value of theinstanceId
record component.- Returns:
- the value of the
instanceId
record component
-
botAccountId
Returns the value of thebotAccountId
record component.- Returns:
- the value of the
botAccountId
record component
-
scriptId
Returns the value of thescriptId
record component.- Returns:
- the value of the
scriptId
record component
-