Package io.levysworks.models.requests
Record Class UserRequest
java.lang.Object
java.lang.Record
io.levysworks.models.requests.UserRequest
- Record Components:
first_name- user's first namelast_name- user's last nameemail- email addressdepartment- department or organizational unitnotes- Additional notes or comments related to the user
public record UserRequest(String first_name, String last_name, String email, String department, String notes)
extends Record
Represents a user request containing personal and organizational details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepartmentrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirst_namerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelast_namerecord component.notes()Returns the value of thenotesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserRequest
public UserRequest(String first_name, String last_name, String email, String department, String notes) Creates an instance of aUserRequestrecord class.- Parameters:
first_name- the value for thefirst_namerecord componentlast_name- the value for thelast_namerecord componentemail- the value for theemailrecord componentdepartment- the value for thedepartmentrecord componentnotes- the value for thenotesrecord component
-
-
Method Details
-
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. -
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. -
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). -
first_name
Returns the value of thefirst_namerecord component.- Returns:
- the value of the
first_namerecord component
-
last_name
Returns the value of thelast_namerecord component.- Returns:
- the value of the
last_namerecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-
notes
Returns the value of thenotesrecord component.- Returns:
- the value of the
notesrecord component
-