Record Class NDefContact
java.lang.Object
java.lang.Record
com.rvi.domain.NDefContact
- All Implemented Interfaces:
NDefContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstNamerecord component.final inthashCode()Returns a hash code value for this object.lastName()Returns the value of thelastNamerecord component.phone()Returns the value of thephonerecord component.final StringtoString()Returns a string representation of this record class.website()Returns the value of thewebsiterecord component.
-
Constructor Details
-
NDefContact
Creates an instance of aNDefContactrecord class.- Parameters:
firstName- the value for thefirstNamerecord componentlastName- the value for thelastNamerecord componentemail- the value for theemailrecord componentphone- the value for thephonerecord componentwebsite- the value for thewebsiterecord 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). -
firstName
Returns the value of thefirstNamerecord component.- Returns:
- the value of the
firstNamerecord component
-
lastName
Returns the value of thelastNamerecord component.- Returns:
- the value of the
lastNamerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
phone
Returns the value of thephonerecord component.- Returns:
- the value of the
phonerecord component
-
website
Returns the value of thewebsiterecord component.- Returns:
- the value of the
websiterecord component
-