Record Class GroupPermissionCache.PermissionKey
java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.group.permission.GroupPermissionCache.PermissionKey
- Enclosing class:
GroupPermissionCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thegroupIdrecord component.private final StringThe field for thepermissionrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPermissionKey(int groupId, String permission) Creates an instance of aPermissionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgroupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
groupId
private final int groupIdThe field for thegroupIdrecord component. -
permission
The field for thepermissionrecord component.
-
-
Constructor Details
-
PermissionKey
Creates an instance of aPermissionKeyrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentpermission- the value for thepermissionrecord component
-
-
Method Details
-
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 '=='. -
groupId
public int groupId()Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-