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 WriteActionThe field for theactionrecord component.private final StringThe field for theuserrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUserWriteNotification(WriteAction action, String user) Creates an instance of aUserWriteNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Field Details
-
action
The field for theactionrecord component. -
user
The field for theuserrecord component.
-
-
Constructor Details
-
UserWriteNotification
Creates an instance of aUserWriteNotificationrecord class.- Parameters:
action- the value for theactionrecord componentuser- the value for theuserrecord 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 theactionrecord component.- Returns:
- the value of the
actionrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-