Record Class UberGpuBuffer.StagedAllocationEntry<T>
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.UberGpuBuffer.StagedAllocationEntry<T>
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
UberGpuBuffer<T>
private static record UberGpuBuffer.StagedAllocationEntry<T>(StagingBuffer.BufferHandle buffer, @Nullable UberGpuBuffer.UploadCallback<T> callback)
extends Record
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StagingBuffer.BufferHandleThe field for thebufferrecord component.private final @Nullable UberGpuBuffer.UploadCallback<T> The field for thecallbackrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStagedAllocationEntry(StagingBuffer.BufferHandle buffer, @Nullable UberGpuBuffer.UploadCallback<T> callback) Creates an instance of aStagedAllocationEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()Returns the value of thebufferrecord component.callback()Returns the value of thecallbackrecord component.voidclose()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.
-
Field Details
-
buffer
The field for thebufferrecord component. -
callback
The field for thecallbackrecord component.
-
-
Constructor Details
-
StagedAllocationEntry
private StagedAllocationEntry(StagingBuffer.BufferHandle buffer, @Nullable UberGpuBuffer.UploadCallback<T> callback) Creates an instance of aStagedAllocationEntryrecord class.- Parameters:
buffer- the value for thebufferrecord componentcallback- the value for thecallbackrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
buffer
Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-