Record Class PlayerProfilesPayload
java.lang.Object
java.lang.Record
org.mvplugins.multiverse.inventories.profile.bulkedit.PlayerProfilesPayload
@Experimental
public record PlayerProfilesPayload(GlobalProfileKey[] globalProfileKeys, ContainerKey[] containerKeys, ProfileType[] profileTypes, boolean includeGroupsWorlds)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerProfilesPayload(GlobalProfileKey[] globalProfileKeys, ContainerKey[] containerKeys, ProfileType[] profileTypes, boolean includeGroupsWorlds) Creates an instance of aPlayerProfilesPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerKeysrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalProfileKeysrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincludeGroupsWorldsrecord component.Returns the value of theprofileTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerProfilesPayload
public PlayerProfilesPayload(@NotNull GlobalProfileKey[] globalProfileKeys, @NotNull ContainerKey[] containerKeys, @NotNull ProfileType[] profileTypes, boolean includeGroupsWorlds) Creates an instance of aPlayerProfilesPayloadrecord class.- Parameters:
globalProfileKeys- the value for theglobalProfileKeysrecord componentcontainerKeys- the value for thecontainerKeysrecord componentprofileTypes- the value for theprofileTypesrecord componentincludeGroupsWorlds- the value for theincludeGroupsWorldsrecord component
-
-
Method Details
-
getSummary
-
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 '=='. -
globalProfileKeys
Returns the value of theglobalProfileKeysrecord component.- Returns:
- the value of the
globalProfileKeysrecord component
-
containerKeys
Returns the value of thecontainerKeysrecord component.- Returns:
- the value of the
containerKeysrecord component
-
profileTypes
Returns the value of theprofileTypesrecord component.- Returns:
- the value of the
profileTypesrecord component
-
includeGroupsWorlds
public boolean includeGroupsWorlds()Returns the value of theincludeGroupsWorldsrecord component.- Returns:
- the value of the
includeGroupsWorldsrecord component
-