Record Class ActorDTO
java.lang.Object
java.lang.Record
de.gustavblass.fsu.fmi.roombooking.dto.ActorDTO
- Record Components:
id- TheActor.idin the database.userName- TheActor.userNameused for authentication.name- The clear name of the Actor.eMailAddress- TheActor.eMailAddress.role- The role that the Actor has.enabled- Whether the Actor's account is enabled/activated.locked- Whether the Actor's account is locked.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull StringThe field for theeMailAddressrecord component.private final booleanThe field for theenabledrecord component.private final @NonNull LongThe field for theidrecord component.private final booleanThe field for thelockedrecord component.private final @NonNull StringThe field for thenamerecord component.private final @NonNull ActorRoleThe field for therolerecord component.private final @NonNull StringThe field for theuserNamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the value of theeMailAddressrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull Longid()Returns the value of theidrecord component.booleanlocked()Returns the value of thelockedrecord component.@NonNull Stringname()Returns the value of thenamerecord component.@NonNull ActorRolerole()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.@NonNull StringuserName()Returns the value of theuserNamerecord component.
-
Field Details
-
id
-
userName
-
name
-
eMailAddress
The field for theeMailAddressrecord component. -
role
-
enabled
private final boolean enabledThe field for theenabledrecord component. -
locked
private final boolean lockedThe field for thelockedrecord component.
-
-
Constructor Details
-
ActorDTO
public ActorDTO(@NonNull @NonNull Long id, @NonNull @NonNull String userName, @NonNull @NonNull String name, @NonNull @NonNull String eMailAddress, @NonNull @NonNull ActorRole role, boolean enabled, boolean locked) Creates an instance of aActorDTOrecord class.- Parameters:
id- the value for theidrecord componentuserName- the value for theuserNamerecord componentname- the value for thenamerecord componenteMailAddress- the value for theeMailAddressrecord componentrole- the value for therolerecord componentenabled- the value for theenabledrecord componentlocked- the value for thelockedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
userName
-
name
-
eMailAddress
Returns the value of theeMailAddressrecord component.- Returns:
- the value of the
eMailAddressrecord component
-
role
-
enabled
-
locked
-