Record Class TransientBlockAllocator.Allocator.CpuBlock
java.lang.Object
java.lang.Record
com.mojang.renderpearl.backend.util.TransientBlockAllocator.Allocator.CpuBlock
- All Implemented Interfaces:
TransientBlockAllocator.Allocator.Block
- Enclosing interface:
TransientBlockAllocator.Allocator<T extends TransientBlockAllocator.Allocator.Block>
public static record TransientBlockAllocator.Allocator.CpuBlock(long address)
extends Record
implements TransientBlockAllocator.Allocator.Block
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for theaddressrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.memalloc()booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
address
private final long addressThe field for theaddressrecord component.
-
-
Constructor Details
-
CpuBlock
public CpuBlock(long address) Creates an instance of aCpuBlockrecord class.- Parameters:
address- the value for theaddressrecord component
-
-
Method Details
-
suboptimal
public boolean suboptimal()- Specified by:
suboptimalin interfaceTransientBlockAllocator.Allocator.Block
-
memalloc
public static TransientBlockAllocator.Allocator<TransientBlockAllocator.Allocator.CpuBlock> memalloc() -
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 with thecomparemethod from their corresponding wrapper classes. -
address
public long address()Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-