Record Class PendingInvite

java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.PendingInvite

public record PendingInvite(String invitationId, String realmName, String realmOwnerName, UUID realmOwnerUuid, Instant date) extends Record
  • Field Details

    • invitationId

      private final String invitationId
      The field for the invitationId record component.
    • realmName

      private final String realmName
      The field for the realmName record component.
    • realmOwnerName

      private final String realmOwnerName
      The field for the realmOwnerName record component.
    • realmOwnerUuid

      private final UUID realmOwnerUuid
      The field for the realmOwnerUuid record component.
    • date

      private final Instant date
      The field for the date record component.
    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • PendingInvite

      public PendingInvite(String invitationId, String realmName, String realmOwnerName, UUID realmOwnerUuid, Instant date)
      Creates an instance of a PendingInvite record class.
      Parameters:
      invitationId - the value for the invitationId record component
      realmName - the value for the realmName record component
      realmOwnerName - the value for the realmOwnerName record component
      realmOwnerUuid - the value for the realmOwnerUuid record component
      date - the value for the date record component
  • Method Details

    • parse

      public static @Nullable PendingInvite parse(JsonObject json)
    • 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.
    • invitationId

      public String invitationId()
      Returns the value of the invitationId record component.
      Returns:
      the value of the invitationId record component
    • realmName

      public String realmName()
      Returns the value of the realmName record component.
      Returns:
      the value of the realmName record component
    • realmOwnerName

      public String realmOwnerName()
      Returns the value of the realmOwnerName record component.
      Returns:
      the value of the realmOwnerName record component
    • realmOwnerUuid

      public UUID realmOwnerUuid()
      Returns the value of the realmOwnerUuid record component.
      Returns:
      the value of the realmOwnerUuid record component
    • date

      public Instant date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component