Record Class UserAvatarMetadata
java.lang.Object
java.lang.Record
com.suncode.pwfl.administration.user.UserAvatarMetadata
public record UserAvatarMetadata(String userName, DivanteColor backgroundColor, boolean hasAvatar)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserAvatarMetadata(String userName, DivanteColor backgroundColor, boolean hasAvatar) Creates an instance of aUserAvatarMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasAvatarrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.userName()Returns the value of theuserNamerecord component.
-
Constructor Details
-
UserAvatarMetadata
Creates an instance of aUserAvatarMetadatarecord class.- Parameters:
userName- the value for theuserNamerecord componentbackgroundColor- the value for thebackgroundColorrecord componenthasAvatar- the value for thehasAvatarrecord 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. -
userName
Returns the value of theuserNamerecord component.- Returns:
- the value of the
userNamerecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
hasAvatar
public boolean hasAvatar()Returns the value of thehasAvatarrecord component.- Returns:
- the value of the
hasAvatarrecord component
-