Package tools.dynamia.crud
Record Class ChangedStateEvent
java.lang.Object
java.lang.Record
tools.dynamia.crud.ChangedStateEvent
public record ChangedStateEvent(CrudState newState, CrudState oldState, GenericCrudView crudView)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionChangedStateEvent(CrudState newState, CrudState oldState, GenericCrudView crudView) Creates an instance of aChangedStateEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncrudView()Returns the value of thecrudViewrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newState()Returns the value of thenewStaterecord component.oldState()Returns the value of theoldStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChangedStateEvent
Creates an instance of aChangedStateEventrecord class.- Parameters:
newState- the value for thenewStaterecord componentoldState- the value for theoldStaterecord componentcrudView- the value for thecrudViewrecord component
-
-
Method Details
-
getNewState
-
getOldState
-
getCrudView
-
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). -
newState
Returns the value of thenewStaterecord component.- Returns:
- the value of the
newStaterecord component
-
oldState
Returns the value of theoldStaterecord component.- Returns:
- the value of the
oldStaterecord component
-
crudView
Returns the value of thecrudViewrecord component.- Returns:
- the value of the
crudViewrecord component
-