com.vaadin.copilot.userinfo.
Record Class UserInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of the
agreedToStoreAIRequests
record component.boolean
boolean
Returns the value of the
copilotProjectCannotLeaveLocalhost
record component.email()
Returns the value of the
email
record component.final boolean
Indicates whether some other object is "equal to" this one.
Returns the value of the
firstname
record component.final int
hashCode()
Returns a hash code value for this object.
lastname()
Returns the value of the
lastname
record component.Returns the value of the
portraitUrl
record component.final String
toString()
Returns a string representation of this record class.
boolean
vaadiner()
Returns the value of the
vaadiner
record component.
-
Constructor Details
-
UserInfo
public UserInfo(boolean agreedToStoreAIRequests, boolean vaadiner, String firstname, String lastname, String email, String portraitUrl, boolean copilotProjectCannotLeaveLocalhost) Creates an instance of a
UserInfo
record class.Parameters:
agreedToStoreAIRequests
- the value for theagreedToStoreAIRequests
record componentvaadiner
- the value for thevaadiner
record componentfirstname
- the value for thefirstname
record componentlastname
- the value for thelastname
record componentemail
- the value for theemail
record componentportraitUrl
- the value for theportraitUrl
record componentcopilotProjectCannotLeaveLocalhost
- the value for thecopilotProjectCannotLeaveLocalhost
record component
-
-
Method Details
-
canDataLeaveLocalhost
public boolean canDataLeaveLocalhost() -
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 with
Objects::equals(Object,Object)
; primitive components are compared with '=='. -
agreedToStoreAIRequests
public boolean agreedToStoreAIRequests()Returns the value of the
agreedToStoreAIRequests
record component.Returns:
the value of the
agreedToStoreAIRequests
record component -
vaadiner
public boolean vaadiner()Returns the value of the
vaadiner
record component.Returns:
the value of the
vaadiner
record component -
firstname
Returns the value of the
firstname
record component.Returns:
the value of the
firstname
record component -
lastname
Returns the value of the
lastname
record component.Returns:
the value of the
lastname
record component -
email
Returns the value of the
email
record component.Returns:
the value of the
email
record component -
portraitUrl
Returns the value of the
portraitUrl
record component.Returns:
the value of the
portraitUrl
record component -
copilotProjectCannotLeaveLocalhost
public boolean copilotProjectCannotLeaveLocalhost()Returns the value of the
copilotProjectCannotLeaveLocalhost
record component.Returns:
the value of the
copilotProjectCannotLeaveLocalhost
record component
-