Package net.neoforged.testframework.conf
Record Class ClientConfiguration
java.lang.Object
java.lang.Record
net.neoforged.testframework.conf.ClientConfiguration
@ParametersAreNonnullByDefault
public record ClientConfiguration(int toggleOverlayKey, int openManagerKey)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theopenManagerKeyrecord component.private final intThe field for thetoggleOverlayKeyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientConfiguration(int toggleOverlayKey, int openManagerKey) Creates an instance of aClientConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientConfiguration.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theopenManagerKeyrecord component.intReturns the value of thetoggleOverlayKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
toggleOverlayKey
private final int toggleOverlayKeyThe field for thetoggleOverlayKeyrecord component. -
openManagerKey
private final int openManagerKeyThe field for theopenManagerKeyrecord component.
-
-
Constructor Details
-
ClientConfiguration
public ClientConfiguration(int toggleOverlayKey, int openManagerKey) Creates an instance of aClientConfigurationrecord class.- Parameters:
toggleOverlayKey- the value for thetoggleOverlayKeyrecord componentopenManagerKey- the value for theopenManagerKeyrecord component
-
-
Method Details
-
builder
-
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 with '=='. -
toggleOverlayKey
public int toggleOverlayKey()Returns the value of thetoggleOverlayKeyrecord component.- Returns:
- the value of the
toggleOverlayKeyrecord component
-
openManagerKey
public int openManagerKey()Returns the value of theopenManagerKeyrecord component.- Returns:
- the value of the
openManagerKeyrecord component
-