Record Class PendingInvite
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.PendingInvite
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InstantThe field for thedaterecord component.private final StringThe field for theinvitationIdrecord component.private static final org.slf4j.Loggerprivate final StringThe field for therealmNamerecord component.private final StringThe field for therealmOwnerNamerecord component.private final UUIDThe field for therealmOwnerUuidrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvitationIdrecord component.static @Nullable PendingInviteparse(JsonObject json) Returns the value of therealmNamerecord component.Returns the value of therealmOwnerNamerecord component.Returns the value of therealmOwnerUuidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
invitationId
The field for theinvitationIdrecord component. -
realmName
The field for therealmNamerecord component. -
realmOwnerName
The field for therealmOwnerNamerecord component. -
realmOwnerUuid
The field for therealmOwnerUuidrecord component. -
date
The field for thedaterecord 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 aPendingInviterecord class.- Parameters:
invitationId- the value for theinvitationIdrecord componentrealmName- the value for therealmNamerecord componentrealmOwnerName- the value for therealmOwnerNamerecord componentrealmOwnerUuid- the value for therealmOwnerUuidrecord componentdate- the value for thedaterecord component
-
-
Method Details
-
parse
-
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). -
invitationId
Returns the value of theinvitationIdrecord component.- Returns:
- the value of the
invitationIdrecord component
-
realmName
Returns the value of therealmNamerecord component.- Returns:
- the value of the
realmNamerecord component
-
realmOwnerName
Returns the value of therealmOwnerNamerecord component.- Returns:
- the value of the
realmOwnerNamerecord component
-
realmOwnerUuid
Returns the value of therealmOwnerUuidrecord component.- Returns:
- the value of the
realmOwnerUuidrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-