Package com.vaadin.copilot.userinfo
Record Class UserInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.userinfo.UserInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theagreedToStoreAIRequestsrecord component.booleanReturns the value of thecopilotProjectCannotLeaveLocalhostrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstnamerecord component.final inthashCode()Returns a hash code value for this object.lastname()Returns the value of thelastnamerecord component.Returns the value of theportraitUrlrecord component.final StringtoString()Returns a string representation of this record class.booleanvaadiner()Returns the value of thevaadinerrecord component.
-
Constructor Details
-
UserInfo
public UserInfo(boolean agreedToStoreAIRequests, boolean vaadiner, String firstname, String lastname, String email, String portraitUrl, boolean copilotProjectCannotLeaveLocalhost) Creates an instance of aUserInforecord class.- Parameters:
agreedToStoreAIRequests- the value for theagreedToStoreAIRequestsrecord componentvaadiner- the value for thevaadinerrecord componentfirstname- the value for thefirstnamerecord componentlastname- the value for thelastnamerecord componentemail- the value for theemailrecord componentportraitUrl- the value for theportraitUrlrecord componentcopilotProjectCannotLeaveLocalhost- the value for thecopilotProjectCannotLeaveLocalhostrecord 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 '=='. -
agreedToStoreAIRequests
public boolean agreedToStoreAIRequests()Returns the value of theagreedToStoreAIRequestsrecord component.- Returns:
- the value of the
agreedToStoreAIRequestsrecord component
-
vaadiner
public boolean vaadiner()Returns the value of thevaadinerrecord component.- Returns:
- the value of the
vaadinerrecord component
-
firstname
Returns the value of thefirstnamerecord component.- Returns:
- the value of the
firstnamerecord component
-
lastname
Returns the value of thelastnamerecord component.- Returns:
- the value of the
lastnamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
portraitUrl
Returns the value of theportraitUrlrecord component.- Returns:
- the value of the
portraitUrlrecord component
-
copilotProjectCannotLeaveLocalhost
public boolean copilotProjectCannotLeaveLocalhost()Returns the value of thecopilotProjectCannotLeaveLocalhostrecord component.- Returns:
- the value of the
copilotProjectCannotLeaveLocalhostrecord component
-