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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for theopenManagerKey
record component.private final int
The field for thetoggleOverlayKey
record component. -
Constructor Summary
ConstructorDescriptionClientConfiguration
(int toggleOverlayKey, int openManagerKey) Creates an instance of aClientConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientConfiguration.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theopenManagerKey
record component.int
Returns the value of thetoggleOverlayKey
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
toggleOverlayKey
private final int toggleOverlayKeyThe field for thetoggleOverlayKey
record component. -
openManagerKey
private final int openManagerKeyThe field for theopenManagerKey
record component.
-
-
Constructor Details
-
ClientConfiguration
public ClientConfiguration(int toggleOverlayKey, int openManagerKey) Creates an instance of aClientConfiguration
record class.- Parameters:
toggleOverlayKey
- the value for thetoggleOverlayKey
record componentopenManagerKey
- the value for theopenManagerKey
record 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 thetoggleOverlayKey
record component.- Returns:
- the value of the
toggleOverlayKey
record component
-
openManagerKey
public int openManagerKey()Returns the value of theopenManagerKey
record component.- Returns:
- the value of the
openManagerKey
record component
-