Record Class SimpleTeamSocialManager

java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.impl.team.SimpleTeamSocialManager
All Implemented Interfaces:
TeamSocialManager

public record SimpleTeamSocialManager(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores) extends Record implements TeamSocialManager
  • Field Details

  • Constructor Details

    • SimpleTeamSocialManager

      public SimpleTeamSocialManager(com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites, com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores)
      Creates an instance of a SimpleTeamSocialManager record class.
      Parameters:
      receivedInvites - the value for the receivedInvites record component
      sentInvites - the value for the sentInvites record component
      ignores - the value for the ignores record component
  • Method Details

    • addReceivedInvite

      public void addReceivedInvite(UUID uuid)
      Specified by:
      addReceivedInvite in interface TeamSocialManager
    • removeReceivedInvite

      public void removeReceivedInvite(UUID uuid)
      Specified by:
      removeReceivedInvite in interface TeamSocialManager
    • containsReceivedInvite

      public boolean containsReceivedInvite(UUID uuid)
      Specified by:
      containsReceivedInvite in interface TeamSocialManager
    • addSentInvite

      public void addSentInvite(UUID uuid)
      Specified by:
      addSentInvite in interface TeamSocialManager
    • removeSentInvite

      public void removeSentInvite(UUID uuid)
      Specified by:
      removeSentInvite in interface TeamSocialManager
    • containsSentInvite

      public boolean containsSentInvite(UUID uuid)
      Specified by:
      containsSentInvite in interface TeamSocialManager
    • addIgnore

      public void addIgnore(UUID uuid)
      Specified by:
      addIgnore in interface TeamSocialManager
    • removeIgnore

      public void removeIgnore(UUID uuid)
      Specified by:
      removeIgnore in interface TeamSocialManager
    • containsIgnore

      public boolean containsIgnore(UUID uuid)
      Specified by:
      containsIgnore in interface TeamSocialManager
    • 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.
    • receivedInvites

      public com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> receivedInvites()
      Returns the value of the receivedInvites record component.
      Returns:
      the value of the receivedInvites record component
    • sentInvites

      public com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> sentInvites()
      Returns the value of the sentInvites record component.
      Returns:
      the value of the sentInvites record component
    • ignores

      public com.portingdeadmods.portingdeadlibs.utils.UniqueArray<UUID> ignores()
      Returns the value of the ignores record component.
      Returns:
      the value of the ignores record component