Record Class GLFWErrorCapture.Error
java.lang.Object
java.lang.Record
com.mojang.blaze3d.GLFWErrorCapture.Error
- Enclosing class:
GLFWErrorCapture
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedescriptionrecord component.private final intThe field for theerrorrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.interror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Field Details
-
error
private final int errorThe field for theerrorrecord component. -
description
The field for thedescriptionrecord component.
-
-
Constructor Details
-
Error
Creates an instance of aErrorrecord class.- Parameters:
error- the value for theerrorrecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
error
public int error()Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-