Record Class UserCardSettings

java.lang.Object
java.lang.Record
io.meeds.social.usercard.model.UserCardSettings
Record Components:
firstField - the first text property
secondField - the second text property
thirdField - the third text property
displayedPhone - the phone property, null to display none
displayedEmail - the email property, null to display none

public record UserCardSettings(String firstField, String secondField, String thirdField, String displayedPhone, String displayedEmail) extends Record
The profile properties the user card displays, each one designated by its profile property name
  • Constructor Details

    • UserCardSettings

      public UserCardSettings(String firstField, String secondField, String thirdField, String displayedPhone, String displayedEmail)
      Creates an instance of a UserCardSettings record class.
      Parameters:
      firstField - the value for the firstField record component
      secondField - the value for the secondField record component
      thirdField - the value for the thirdField record component
      displayedPhone - the value for the displayedPhone record component
      displayedEmail - the value for the displayedEmail 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • firstField

      public String firstField()
      Returns the value of the firstField record component.
      Returns:
      the value of the firstField record component
    • secondField

      public String secondField()
      Returns the value of the secondField record component.
      Returns:
      the value of the secondField record component
    • thirdField

      public String thirdField()
      Returns the value of the thirdField record component.
      Returns:
      the value of the thirdField record component
    • displayedPhone

      public String displayedPhone()
      Returns the value of the displayedPhone record component.
      Returns:
      the value of the displayedPhone record component
    • displayedEmail

      public String displayedEmail()
      Returns the value of the displayedEmail record component.
      Returns:
      the value of the displayedEmail record component