Package net.minecraft.server
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
The field for theclsrecord component. -
message
The field for themessagerecord component.
-
-
Constructor Details
-
LongEntry
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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
Returns the value of theclsrecord component.- Returns:
- the value of the
clsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-