Record Class NBufferBundle.MemoryReport.GridEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.newsystem.bufferbundle.NBufferBundle.MemoryReport.GridEntry
- Enclosing class:
NBufferBundle.MemoryReport
public static record NBufferBundle.MemoryReport.GridEntry(MemInstrument.Report report, int bufferCount, @Nonnull NBufferType bufferType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebufferCountrecord component.private final NBufferTypeThe field for thebufferTyperecord component.private final MemInstrument.ReportThe field for thereportrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGridEntry(MemInstrument.Report report, int bufferCount, NBufferType bufferType) Creates an instance of aGridEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferCountrecord component.Returns the value of thebufferTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.final StringtoString()Returns a string representation of this record class.toString(int indentation)
-
Field Details
-
report
The field for thereportrecord component. -
bufferCount
private final int bufferCountThe field for thebufferCountrecord component. -
bufferType
The field for thebufferTyperecord component.
-
-
Constructor Details
-
GridEntry
Creates an instance of aGridEntryrecord class.- Parameters:
report- the value for thereportrecord componentbufferCount- the value for thebufferCountrecord componentbufferType- the value for thebufferTyperecord component
-
-
Method Details
-
toString
-
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 '=='. -
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-
bufferCount
public int bufferCount()Returns the value of thebufferCountrecord component.- Returns:
- the value of the
bufferCountrecord component
-
bufferType
Returns the value of thebufferTyperecord component.- Returns:
- the value of the
bufferTyperecord component
-