Record Class ImmutableGlDeviceProperties
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.blaze3d.opengl.ImmutableGlDeviceProperties
- All Implemented Interfaces:
GpuDeviceProperties
@Internal
public record ImmutableGlDeviceProperties(String backendName, String apiName)
extends Record
implements GpuDeviceProperties
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImmutableGlDeviceProperties(String backendName, String apiName) Creates an instance of aImmutableGlDevicePropertiesrecord class.ImmutableGlDeviceProperties(GpuDeviceProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionapiName()Returns the value of theapiNamerecord component.Returns the value of thebackendNamerecord 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.
-
Field Details
-
backendName
The field for thebackendNamerecord component. -
apiName
The field for theapiNamerecord component.
-
-
Constructor Details
-
ImmutableGlDeviceProperties
-
ImmutableGlDeviceProperties
Creates an instance of aImmutableGlDevicePropertiesrecord class.- Parameters:
backendName- the value for thebackendNamerecord componentapiName- the value for theapiNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
backendName
Returns the value of thebackendNamerecord component.- Specified by:
backendNamein interfaceGpuDeviceProperties- Returns:
- the value of the
backendNamerecord component
-
apiName
Returns the value of theapiNamerecord component.- Specified by:
apiNamein interfaceGpuDeviceProperties- Returns:
- the value of the
apiNamerecord component
-