Package io.mateu.dtos
Record Class AvatarGroupDto
java.lang.Object
java.lang.Record
io.mateu.dtos.AvatarGroupDto
- All Implemented Interfaces:
ComponentMetadataDto
public record AvatarGroupDto(List<AvatarDto> avatars, int maxItemsVisible)
extends Record
implements ComponentMetadataDto
Metadata for a html element
-
Constructor Summary
ConstructorsConstructorDescriptionAvatarGroupDto(List<AvatarDto> avatars, int maxItemsVisible) Creates an instance of aAvatarGroupDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionavatars()Returns the value of theavatarsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxItemsVisiblerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AvatarGroupDto
Creates an instance of aAvatarGroupDtorecord class.- Parameters:
avatars- the value for theavatarsrecord componentmaxItemsVisible- the value for themaxItemsVisiblerecord 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 '=='. -
avatars
Returns the value of theavatarsrecord component.- Returns:
- the value of the
avatarsrecord component
-
maxItemsVisible
public int maxItemsVisible()Returns the value of themaxItemsVisiblerecord component.- Returns:
- the value of the
maxItemsVisiblerecord component
-