Record Class UserCardSettings
java.lang.Object
java.lang.Record
io.meeds.social.usercard.model.UserCardSettings
- Record Components:
firstField- the first text propertysecondField- the second text propertythirdField- the third text propertydisplayedPhone- the phone property, null to display nonedisplayedEmail- the email property, null to display none
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayedEmailrecord component.Returns the value of thedisplayedPhonerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstFieldrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesecondFieldrecord component.Returns the value of thethirdFieldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserCardSettings
public UserCardSettings(String firstField, String secondField, String thirdField, String displayedPhone, String displayedEmail) Creates an instance of aUserCardSettingsrecord class.- Parameters:
firstField- the value for thefirstFieldrecord componentsecondField- the value for thesecondFieldrecord componentthirdField- the value for thethirdFieldrecord componentdisplayedPhone- the value for thedisplayedPhonerecord componentdisplayedEmail- the value for thedisplayedEmailrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
firstField
Returns the value of thefirstFieldrecord component.- Returns:
- the value of the
firstFieldrecord component
-
secondField
Returns the value of thesecondFieldrecord component.- Returns:
- the value of the
secondFieldrecord component
-
thirdField
Returns the value of thethirdFieldrecord component.- Returns:
- the value of the
thirdFieldrecord component
-
displayedPhone
Returns the value of thedisplayedPhonerecord component.- Returns:
- the value of the
displayedPhonerecord component
-
displayedEmail
Returns the value of thedisplayedEmailrecord component.- Returns:
- the value of the
displayedEmailrecord component
-