Record Class UserAvatarDto
java.lang.Object
java.lang.Record
com.suncode.pwfl.administration.user.UserAvatarDto
public record UserAvatarDto(Long id, byte[] avatar, boolean mini, DivanteColor backgroundColor, byte[] generatedAvatar)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUserAvatarDto(UserAvatar userAvatar) UserAvatarDto(Long id, byte[] avatar, boolean mini, DivanteColor backgroundColor, byte[] generatedAvatar) Creates an instance of aUserAvatarDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]avatar()Returns the value of theavatarrecord component.Returns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.byte[]Returns the value of thegeneratedAvatarrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanmini()Returns the value of theminirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserAvatarDto
-
UserAvatarDto
public UserAvatarDto(Long id, byte[] avatar, boolean mini, DivanteColor backgroundColor, byte[] generatedAvatar) Creates an instance of aUserAvatarDtorecord class.- Parameters:
id- the value for theidrecord componentavatar- the value for theavatarrecord componentmini- the value for theminirecord componentbackgroundColor- the value for thebackgroundColorrecord componentgeneratedAvatar- the value for thegeneratedAvatarrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
avatar
public byte[] avatar()Returns the value of theavatarrecord component.- Returns:
- the value of the
avatarrecord component
-
mini
public boolean mini()Returns the value of theminirecord component.- Returns:
- the value of the
minirecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
generatedAvatar
public byte[] generatedAvatar()Returns the value of thegeneratedAvatarrecord component.- Returns:
- the value of the
generatedAvatarrecord component
-