Package ch.rswk.meta.engine
Record Class UserService.UserWriteNotification
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.UserWriteNotification
- Enclosing class:
UserService
public static record UserService.UserWriteNotification(WriteAction action, String user)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WriteAction
The field for theaction
record component.private final String
The field for theuser
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUserWriteNotification
(WriteAction action, String user) Creates an instance of aUserWriteNotification
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Field Details
-
action
The field for theaction
record component. -
user
The field for theuser
record component.
-
-
Constructor Details
-
UserWriteNotification
Creates an instance of aUserWriteNotification
record class.- Parameters:
action
- the value for theaction
record componentuser
- the value for theuser
record 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 withObjects::equals(Object,Object)
. -
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-