Record Class DefaultClaimIdentity
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.core.claim.DefaultClaimIdentity
- All Implemented Interfaces:
su.nightexpress.excellentclaims.api.claim.ClaimIdentity
@NullMarked
public record DefaultClaimIdentity(su.nightexpress.excellentclaims.api.core.id.Identifier idKey, su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey, su.nightexpress.excellentclaims.api.core.id.Identifier moduleKey)
extends Record
implements su.nightexpress.excellentclaims.api.claim.ClaimIdentity
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClaimIdentity(su.nightexpress.excellentclaims.api.core.id.Identifier idKey, su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey, su.nightexpress.excellentclaims.api.core.id.Identifier moduleKey) Creates an instance of aDefaultClaimIdentityrecord 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.su.nightexpress.excellentclaims.api.core.id.IdentifieridKey()Returns the value of theidKeyrecord component.su.nightexpress.excellentclaims.api.core.id.IdentifierReturns the value of themoduleKeyrecord component.final StringtoString()Returns a string representation of this record class.su.nightexpress.nightcore.bridge.key.AdaptedKeyworldKey()Returns the value of theworldKeyrecord component.
-
Constructor Details
-
DefaultClaimIdentity
public DefaultClaimIdentity(su.nightexpress.excellentclaims.api.core.id.Identifier idKey, su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey, su.nightexpress.excellentclaims.api.core.id.Identifier moduleKey) Creates an instance of aDefaultClaimIdentityrecord class.- Parameters:
idKey- the value for theidKeyrecord componentworldKey- the value for theworldKeyrecord componentmoduleKey- the value for themoduleKeyrecord 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). -
idKey
public su.nightexpress.excellentclaims.api.core.id.Identifier idKey()Returns the value of theidKeyrecord component.- Specified by:
idKeyin interfacesu.nightexpress.excellentclaims.api.claim.ClaimIdentity- Returns:
- the value of the
idKeyrecord component
-
worldKey
public su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey()Returns the value of theworldKeyrecord component.- Specified by:
worldKeyin interfacesu.nightexpress.excellentclaims.api.claim.ClaimIdentity- Returns:
- the value of the
worldKeyrecord component
-
moduleKey
public su.nightexpress.excellentclaims.api.core.id.Identifier moduleKey()Returns the value of themoduleKeyrecord component.- Specified by:
moduleKeyin interfacesu.nightexpress.excellentclaims.api.claim.ClaimIdentity- Returns:
- the value of the
moduleKeyrecord component
-