Record Class NativeUiToggle.Change
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiToggle.Change
- Enclosing class:
NativeUiToggle
public static record NativeUiToggle.Change(int group, int index, boolean checked, boolean notifyController, boolean radio)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChange(int group, int index, boolean checked, boolean notifyController, boolean radio) Creates an instance of aChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchecked()Returns the value of thecheckedrecord component.final booleanIndicates whether some other object is "equal to" this one.intgroup()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanReturns the value of thenotifyControllerrecord component.booleanradio()Returns the value of theradiorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Change
public Change(int group, int index, boolean checked, boolean notifyController, boolean radio) Creates an instance of aChangerecord class.- Parameters:
group- the value for thegrouprecord componentindex- the value for theindexrecord componentchecked- the value for thecheckedrecord componentnotifyController- the value for thenotifyControllerrecord componentradio- the value for theradiorecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
group
public int group()Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
checked
public boolean checked()Returns the value of thecheckedrecord component.- Returns:
- the value of the
checkedrecord component
-
notifyController
public boolean notifyController()Returns the value of thenotifyControllerrecord component.- Returns:
- the value of the
notifyControllerrecord component
-
radio
public boolean radio()Returns the value of theradiorecord component.- Returns:
- the value of the
radiorecord component
-