Record Class ConfigurationScreen.UndoManager.Step<T>
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.gui.ConfigurationScreen.UndoManager.Step<T>
- Enclosing class:
ConfigurationScreen.UndoManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newValue()Returns the value of thenewValuerecord component.oldValue()Returns the value of theoldValuerecord component.run()Returns the value of therunrecord component.private voidrunRedo()private voidrunUndo()final StringtoString()Returns a string representation of this record class.undo()Returns the value of theundorecord component.
-
Field Details
-
run
The field for therunrecord component. -
newValue
The field for thenewValuerecord component. -
undo
The field for theundorecord component. -
oldValue
The field for theoldValuerecord component.
-
-
Constructor Details
-
Step
Creates an instance of aSteprecord class.- Parameters:
run- the value for therunrecord componentnewValue- the value for thenewValuerecord componentundo- the value for theundorecord componentoldValue- the value for theoldValuerecord component
-
-
Method Details
-
runUndo
private void runUndo() -
runRedo
private void runRedo() -
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). -
run
Returns the value of therunrecord component.- Returns:
- the value of the
runrecord component
-
newValue
Returns the value of thenewValuerecord component.- Returns:
- the value of the
newValuerecord component
-
undo
Returns the value of theundorecord component.- Returns:
- the value of the
undorecord component
-
oldValue
Returns the value of theoldValuerecord component.- Returns:
- the value of the
oldValuerecord component
-