Record Class Invite
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.Invite
public record Invite(String id, String email, String role, String status, long invitedAt, long expiresAt, Long acceptedAt)
extends Record
Represents an individual `invite` to the organization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptedAtrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of theinvitedAtrecord component.role()Returns the value of therolerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Invite
public Invite(String id, String email, String role, String status, long invitedAt, long expiresAt, Long acceptedAt) Creates an instance of aInviterecord class.- Parameters:
id- the value for theidrecord componentemail- the value for theemailrecord componentrole- the value for therolerecord componentstatus- the value for thestatusrecord componentinvitedAt- the value for theinvitedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentacceptedAt- the value for theacceptedAtrecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
invitedAt
public long invitedAt()Returns the value of theinvitedAtrecord component.- Returns:
- the value of the
invitedAtrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
acceptedAt
Returns the value of theacceptedAtrecord component.- Returns:
- the value of the
acceptedAtrecord component
-