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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.newValue()
Returns the value of thenewValue
record component.oldValue()
Returns the value of theoldValue
record component.run()
Returns the value of therun
record component.private void
runRedo()
private void
runUndo()
final String
toString()
Returns a string representation of this record class.undo()
Returns the value of theundo
record component.
-
Field Details
-
run
The field for therun
record component. -
newValue
The field for thenewValue
record component. -
undo
The field for theundo
record component. -
oldValue
The field for theoldValue
record component.
-
-
Constructor Details
-
Step
Creates an instance of aStep
record class.- Parameters:
run
- the value for therun
record componentnewValue
- the value for thenewValue
record componentundo
- the value for theundo
record componentoldValue
- the value for theoldValue
record 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 therun
record component.- Returns:
- the value of the
run
record component
-
newValue
Returns the value of thenewValue
record component.- Returns:
- the value of the
newValue
record component
-
undo
Returns the value of theundo
record component.- Returns:
- the value of the
undo
record component
-
oldValue
Returns the value of theoldValue
record component.- Returns:
- the value of the
oldValue
record component
-