Package page.codeberg.friedolyn.crypto
Record Class KeePassXC.KeePassEntry
java.lang.Object
java.lang.Record
page.codeberg.friedolyn.crypto.KeePassXC.KeePassEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thegrouprecord component.private final StringThe field for theloginrecord component.private final StringThe field for thenamerecord component.private final char[]The field for thepasswordrecord component.The field for thestringFieldsrecord component.private final StringThe field for theuuidrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.login()Returns the value of theloginrecord component.name()Returns the value of thenamerecord component.char[]password()Returns the value of thepasswordrecord component.Returns the value of thestringFieldsrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
login
The field for theloginrecord component. -
password
private final char[] passwordThe field for thepasswordrecord component. -
name
The field for thenamerecord component. -
stringFields
-
uuid
The field for theuuidrecord component. -
group
The field for thegrouprecord component.
-
-
Constructor Details
-
KeePassEntry
public KeePassEntry(String login, char[] password, String name, ArrayList<String> stringFields, String uuid, String group) Creates an instance of aKeePassEntryrecord class.- Parameters:
login- the value for theloginrecord componentpassword- the value for thepasswordrecord componentname- the value for thenamerecord componentstringFields- the value for thestringFieldsrecord componentuuid- the value for theuuidrecord componentgroup- the value for thegrouprecord 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). -
login
Returns the value of theloginrecord component.- Returns:
- the value of the
loginrecord component
-
password
public char[] password()Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
stringFields
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-