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 aPlayerProfilesPayload
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerKeys
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theglobalProfileKeys
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theincludeGroupsWorlds
record component.Returns the value of theprofileTypes
record component.final String
toString()
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 aPlayerProfilesPayload
record class.- Parameters:
globalProfileKeys
- the value for theglobalProfileKeys
record componentcontainerKeys
- the value for thecontainerKeys
record componentprofileTypes
- the value for theprofileTypes
record componentincludeGroupsWorlds
- the value for theincludeGroupsWorlds
record 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 theglobalProfileKeys
record component.- Returns:
- the value of the
globalProfileKeys
record component
-
containerKeys
Returns the value of thecontainerKeys
record component.- Returns:
- the value of the
containerKeys
record component
-
profileTypes
Returns the value of theprofileTypes
record component.- Returns:
- the value of the
profileTypes
record component
-
includeGroupsWorlds
public boolean includeGroupsWorlds()Returns the value of theincludeGroupsWorlds
record component.- Returns:
- the value of the
includeGroupsWorlds
record component
-