Record Class UserInfo

java.lang.Object
java.lang.Record
com.vaadin.copilot.userinfo.UserInfo

public record UserInfo(boolean agreedToStoreAIRequests, boolean vaadiner, String firstname, String lastname, String email, String portraitUrl, boolean copilotProjectCannotLeaveLocalhost) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    UserInfo(boolean agreedToStoreAIRequests, boolean vaadiner, String firstname, String lastname, String email, String portraitUrl, boolean copilotProjectCannotLeaveLocalhost)
    Creates an instance of a UserInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the agreedToStoreAIRequests record component.
    boolean
    Returns the value of the copilotProjectCannotLeaveLocalhost record component.
    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
    Returns a hash code value for this object.
    Returns the value of the lastname record component.
    Returns the value of the portraitUrl record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the vaadiner record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 the agreedToStoreAIRequests record component
      vaadiner - the value for the vaadiner record component
      firstname - the value for the firstname record component
      lastname - the value for the lastname record component
      email - the value for the email record component
      portraitUrl - the value for the portraitUrl record component
      copilotProjectCannotLeaveLocalhost - the value for the copilotProjectCannotLeaveLocalhost record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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

      public String firstname()
      Returns the value of the firstname record component.
      Returns:
      the value of the firstname record component
    • lastname

      public String lastname()
      Returns the value of the lastname record component.
      Returns:
      the value of the lastname record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • portraitUrl

      public String 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