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

    Constructors
    Constructor
    Description
    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 a DefaultClaimIdentity record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    su.nightexpress.excellentclaims.api.core.id.Identifier
    Returns the value of the idKey record component.
    su.nightexpress.excellentclaims.api.core.id.Identifier
    Returns the value of the moduleKey record component.
    final String
    Returns a string representation of this record class.
    su.nightexpress.nightcore.bridge.key.AdaptedKey
    Returns the value of the worldKey record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a DefaultClaimIdentity record class.
      Parameters:
      idKey - the value for the idKey record component
      worldKey - the value for the worldKey record component
      moduleKey - the value for the moduleKey record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • idKey

      public su.nightexpress.excellentclaims.api.core.id.Identifier idKey()
      Returns the value of the idKey record component.
      Specified by:
      idKey in interface su.nightexpress.excellentclaims.api.claim.ClaimIdentity
      Returns:
      the value of the idKey record component
    • worldKey

      public su.nightexpress.nightcore.bridge.key.AdaptedKey worldKey()
      Returns the value of the worldKey record component.
      Specified by:
      worldKey in interface su.nightexpress.excellentclaims.api.claim.ClaimIdentity
      Returns:
      the value of the worldKey record component
    • moduleKey

      public su.nightexpress.excellentclaims.api.core.id.Identifier moduleKey()
      Returns the value of the moduleKey record component.
      Specified by:
      moduleKey in interface su.nightexpress.excellentclaims.api.claim.ClaimIdentity
      Returns:
      the value of the moduleKey record component