Package passwordmanager.decoded
Interface IStorage
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
ListStorage,MapStorage
Data structure with decrypted records
- Since:
- 2023-12-14
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Method for cleaning up the data structureclone()Method for cloning a structure object with decrypted recordsvoidA method that creates a new entry in the repositoryvoiddelete(int index) Method removing information about a record in the repositoryfilterByInfo(String query) Method for filtering structure recordsgetByIndex(int index) Method that reads an entry from the repositorygetName()Method for getting the name of an decrypted data structurebooleanisEmpty()Method for checking a structure for missing valuesvoidMethod for setting the name of an encrypted data structureintsize()Method for getting the number of elements in a data structurevoidMethod updating information about a record in the repository
-
Method Details
-
create
A method that creates a new entry in the repository- Parameters:
record- decoded record
-
getByIndex
Method that reads an entry from the repository- Parameters:
index- Index of entry to read in structure
-
update
Method updating information about a record in the repository- Parameters:
record- decrypted record to be updated
-
delete
void delete(int index) Method removing information about a record in the repository- Parameters:
index- decrypted record index to be removed
-
clone
IStorage clone()Method for cloning a structure object with decrypted records- Returns:
- cloned structure
-
isEmpty
boolean isEmpty()Method for checking a structure for missing values- Returns:
- whether the data structure is empty or not
-
clear
void clear()Method for cleaning up the data structure -
size
int size()Method for getting the number of elements in a data structure- Returns:
- number of elements in a data structure
-
getName
String getName()Method for getting the name of an decrypted data structure- Returns:
- data structure name
-
setName
Method for setting the name of an encrypted data structure- Parameters:
newName- new data structure name
-
filterByInfo
Method for filtering structure records- Parameters:
query- filter string
-