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 aImmutableGlDeviceProperties
record class.ImmutableGlDeviceProperties
(GpuDeviceProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionapiName()
Returns the value of theapiName
record component.Returns the value of thebackendName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
backendName
The field for thebackendName
record component. -
apiName
The field for theapiName
record component.
-
-
Constructor Details
-
ImmutableGlDeviceProperties
-
ImmutableGlDeviceProperties
Creates an instance of aImmutableGlDeviceProperties
record class.- Parameters:
backendName
- the value for thebackendName
record componentapiName
- the value for theapiName
record 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 thebackendName
record component.- Specified by:
backendName
in interfaceGpuDeviceProperties
- Returns:
- the value of the
backendName
record component
-
apiName
Returns the value of theapiName
record component.- Specified by:
apiName
in interfaceGpuDeviceProperties
- Returns:
- the value of the
apiName
record component
-