Package com.vaadin.copilot.userinfo
Record Class UserInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.userinfo.UserInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUserInfo(boolean agreedToStoreAIRequests, boolean vaadiner) Creates an instance of aUserInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theagreedToStoreAIRequestsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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) Creates an instance of aUserInforecord class.- Parameters:
agreedToStoreAIRequests- the value for theagreedToStoreAIRequestsrecord componentvaadiner- the value for thevaadinerrecord 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. All components in this record class 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
-