Record Class Parameters.PlayerParameters
java.lang.Object
java.lang.Record
com.djrapitops.plan.extension.implementation.providers.Parameters.PlayerParameters
- All Implemented Interfaces:
Parameters
- Enclosing interface:
Parameters
public static record Parameters.PlayerParameters(ServerUUID serverUUID, UUID playerUUID, String playerName)
extends Record
implements Parameters
-
Nested Class Summary
Nested classes/interfaces inherited from interface Parameters
Parameters.GroupParameters, Parameters.PlayerParameters, Parameters.ServerParameters -
Constructor Summary
ConstructorsConstructorDescriptionPlayerParameters(ServerUUID serverUUID, UUID playerUUID, String playerName) Creates an instance of aPlayerParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerNamerecord component.Returns the value of theplayerUUIDrecord component.Returns the value of theserverUUIDrecord component.final StringtoString()Returns a string representation of this record class.usingOn(DataExtension extension, Method method)
-
Constructor Details
-
PlayerParameters
Creates an instance of aPlayerParametersrecord class.- Parameters:
serverUUID- the value for theserverUUIDrecord componentplayerUUID- the value for theplayerUUIDrecord componentplayerName- the value for theplayerNamerecord component
-
-
Method Details
-
getServerUUID
- Specified by:
getServerUUIDin interfaceParameters
-
getPlayerUUID
- Specified by:
getPlayerUUIDin interfaceParameters
-
getPlayerName
-
usingOn
public Object usingOn(DataExtension extension, Method method) throws InvocationTargetException, IllegalAccessException - Specified by:
usingOnin interfaceParameters- Throws:
InvocationTargetExceptionIllegalAccessException
-
getMethodType
- Specified by:
getMethodTypein interfaceParameters
-
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). -
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-
playerUUID
Returns the value of theplayerUUIDrecord component.- Returns:
- the value of the
playerUUIDrecord component
-
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-