Record Class PlayerListDto
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.PlayerListDto
public record PlayerListDto(List<TablePlayerDto> players, List<ExtensionDescriptionDto> extensionDescriptors)
extends Record
Represents /v1/playerTable data.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerListDto(List<TablePlayerDto> players, List<ExtensionDescriptionDto> extensionDescriptors) Creates an instance of aPlayerListDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionDescriptorsrecord component.final inthashCode()Returns a hash code value for this object.players()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerListDto
public PlayerListDto(List<TablePlayerDto> players, List<ExtensionDescriptionDto> extensionDescriptors) Creates an instance of aPlayerListDtorecord class.- Parameters:
players- the value for theplayersrecord componentextensionDescriptors- the value for theextensionDescriptorsrecord 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). -
players
Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
extensionDescriptors
Returns the value of theextensionDescriptorsrecord component.- Returns:
- the value of the
extensionDescriptorsrecord component
-