Record Class PermissionContext.InstanceContext
java.lang.Object
java.lang.Record
com.soulfiremc.server.user.PermissionContext.InstanceContext
- All Implemented Interfaces:
PermissionContext
- Enclosing interface:
PermissionContext
public static record PermissionContext.InstanceContext(InstancePermission instancePermission, UUID instanceId)
extends Record
implements PermissionContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface PermissionContext
PermissionContext.GlobalContext, PermissionContext.InstanceContext -
Constructor Summary
ConstructorsConstructorDescriptionInstanceContext(InstancePermission instancePermission, UUID instanceId) Creates an instance of aInstanceContextrecord 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 theinstanceIdrecord component.Returns the value of theinstancePermissionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstanceContext
Creates an instance of aInstanceContextrecord class.- Parameters:
instancePermission- the value for theinstancePermissionrecord componentinstanceId- the value for theinstanceIdrecord 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). -
instancePermission
Returns the value of theinstancePermissionrecord component.- Returns:
- the value of the
instancePermissionrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-