Record Class SuppressedExceptionCollector.LongEntry
java.lang.Object
java.lang.Record
net.minecraft.server.SuppressedExceptionCollector.LongEntry
- Enclosing class:
SuppressedExceptionCollector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncls()Returns the value of theclsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.message()Returns the value of themessagerecord component.longReturns the value of thetimestampMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timestampMs
private final long timestampMsThe field for thetimestampMsrecord component. -
location
The field for thelocationrecord component. -
cls
-
message
The field for themessagerecord component.
-
-
Constructor Details
-
LongEntry
private LongEntry(long timestampMs, String location, Class<? extends Throwable> cls, String message) Creates an instance of aLongEntryrecord class.- Parameters:
timestampMs- the value for thetimestampMsrecord componentlocation- the value for thelocationrecord componentcls- the value for theclsrecord 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. -
timestampMs
public long timestampMs()Returns the value of thetimestampMsrecord component.- Returns:
- the value of the
timestampMsrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
cls
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-