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 theacceptedAt
record component.email()
Returns the value of theemail
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpiresAt
record component.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.long
Returns the value of theinvitedAt
record component.role()
Returns the value of therole
record component.status()
Returns the value of thestatus
record component.final String
toString()
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 aInvite
record class.- Parameters:
id
- the value for theid
record componentemail
- the value for theemail
record componentrole
- the value for therole
record componentstatus
- the value for thestatus
record componentinvitedAt
- the value for theinvitedAt
record componentexpiresAt
- the value for theexpiresAt
record componentacceptedAt
- the value for theacceptedAt
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
invitedAt
public long invitedAt()Returns the value of theinvitedAt
record component.- Returns:
- the value of the
invitedAt
record component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
acceptedAt
Returns the value of theacceptedAt
record component.- Returns:
- the value of the
acceptedAt
record component
-