Record Class CloudSubjectReference
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.cloudperms.sponge.service.CloudSubjectReference
- All Implemented Interfaces:
org.spongepowered.api.service.permission.SubjectReference
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecollectionIdentifierrecord component.private final @NonNull org.spongepowered.api.service.permission.PermissionServiceThe field for thepermsServicerecord component.The field for thesubjectIdentifierrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionIdentifierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull org.spongepowered.api.service.permission.PermissionServiceReturns the value of thepermsServicerecord component.CompletableFuture<? extends org.spongepowered.api.service.permission.Subject>resolve()Returns the value of thesubjectIdentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
collectionIdentifier
The field for thecollectionIdentifierrecord component. -
subjectIdentifier
The field for thesubjectIdentifierrecord component. -
permsService
@NonNull private final @NonNull org.spongepowered.api.service.permission.PermissionService permsServiceThe field for thepermsServicerecord component.
-
-
Constructor Details
-
CloudSubjectReference
public CloudSubjectReference(@NonNull @NonNull String collectionIdentifier, @NonNull @NonNull String subjectIdentifier, @NonNull @NonNull org.spongepowered.api.service.permission.PermissionService permsService) Creates an instance of aCloudSubjectReferencerecord class.- Parameters:
collectionIdentifier- the value for thecollectionIdentifierrecord componentsubjectIdentifier- the value for thesubjectIdentifierrecord componentpermsService- the value for thepermsServicerecord component
-
-
Method Details
-
resolve
- Specified by:
resolvein interfaceorg.spongepowered.api.service.permission.SubjectReference
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
collectionIdentifier
Returns the value of thecollectionIdentifierrecord component.- Specified by:
collectionIdentifierin interfaceorg.spongepowered.api.service.permission.SubjectReference- Returns:
- the value of the
collectionIdentifierrecord component
-
subjectIdentifier
Returns the value of thesubjectIdentifierrecord component.- Specified by:
subjectIdentifierin interfaceorg.spongepowered.api.service.permission.SubjectReference- Returns:
- the value of the
subjectIdentifierrecord component
-
permsService
Returns the value of thepermsServicerecord component.- Returns:
- the value of the
permsServicerecord component
-