Record Class FilesystemAccountStore.Account
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.storage.filesystem.FilesystemAccountStore.Account
- Enclosing class:
FilesystemAccountStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountIdrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.gender()Returns the value of thegenderrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepasswordHashrecord component.Returns the value of thepersonaNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Account
public Account(String accountId, String personaName, String gender, String email, String passwordHash) Creates an instance of aAccountrecord class.- Parameters:
accountId- the value for theaccountIdrecord componentpersonaName- the value for thepersonaNamerecord componentgender- the value for thegenderrecord componentemail- the value for theemailrecord componentpasswordHash- the value for thepasswordHashrecord 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). -
accountId
Returns the value of theaccountIdrecord component.- Returns:
- the value of the
accountIdrecord component
-
personaName
Returns the value of thepersonaNamerecord component.- Returns:
- the value of the
personaNamerecord component
-
gender
Returns the value of thegenderrecord component.- Returns:
- the value of the
genderrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
passwordHash
Returns the value of thepasswordHashrecord component.- Returns:
- the value of the
passwordHashrecord component
-