Record Class Person
java.lang.Object
java.lang.Record
io.bloviate.datafaker.Person
- Record Components:
firstName- the given namelastName- the family namefullName- the full name, derived fromfirstNameandlastNameemail- an email address derived from the name (reservedexample.*domain)username- a username derived from the name
public record Person(String firstName, String lastName, String fullName, String email, String username)
extends Record
A coherent person identity for one row: the
email, username, and fullName
are all derived from the same firstName/lastName, so columns that project
different fields of the same Person agree (no "jane.doe with email bob@…"). Materialized
once per row by People.- Since:
- 2.12.0
- See Also:
-
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.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.lastName()Returns the value of thelastNamerecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Person
Creates an instance of aPersonrecord class.
-
-
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
-
lastName
-
fullName
-
email
-
username
-