Contents
Record Class BufferBundle.Grid.TrackedBuffer
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.hytalegenerator.engine.bufferbundle.BufferBundle.Grid.TrackedBuffer
- All Implemented Interfaces:
MemInstrument
- Enclosing class:
BufferBundle.Grid
public static record BufferBundle.Grid.TrackedBuffer(@Nonnull BufferBundle.Tracker tracker, @Nonnull Buffer buffer)
extends Record
implements MemInstrument
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemInstrument
MemInstrument.Report -
Field Summary
Fields inherited from interface MemInstrument
ARRAY_HEADER_SIZE, ARRAYLIST_OBJECT_SIZE, BOOLEAN_SIZE, BYTES_IN_MEGABYTES, CLASS_OBJECT_SIZE, DOUBLE_SIZE, HASHMAP_ENTRY_SIZE, INT_SIZE, OBJECT_HEADER_SIZE, OBJECT_REFERENCE_SIZE, VECTOR3I_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionTrackedBuffer(BufferBundle.Tracker tracker, Buffer buffer) Creates an instance of aTrackedBufferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()Returns the value of thebufferrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.tracker()Returns the value of thetrackerrecord component.
-
Constructor Details
-
TrackedBuffer
Creates an instance of aTrackedBufferrecord class.- Parameters:
tracker- the value for thetrackerrecord componentbuffer- the value for thebufferrecord component
-
-
Method Details
-
getMemoryUsage
- Specified by:
getMemoryUsagein interfaceMemInstrument
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
tracker
Returns the value of thetrackerrecord component.- Returns:
- the value of the
trackerrecord component
-
buffer
Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-