Interface IStorage

All Superinterfaces:
Cloneable
All Known Implementing Classes:
ListStorage, MapStorage

public interface IStorage extends Cloneable
Data structure with decrypted records
Since:
2023-12-14
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method for cleaning up the data structure
    Method for cloning a structure object with decrypted records
    void
    create(IRecord record)
    A method that creates a new entry in the repository
    void
    delete(int index)
    Method removing information about a record in the repository
    Method for filtering structure records
    getByIndex(int index)
    Method that reads an entry from the repository
    Method for getting the name of an decrypted data structure
    boolean
    Method for checking a structure for missing values
    void
    setName(String newName)
    Method for setting the name of an encrypted data structure
    int
    Method for getting the number of elements in a data structure
    void
    update(IRecord record)
    Method updating information about a record in the repository
  • Method Details

    • create

      void create(IRecord record)
      A method that creates a new entry in the repository
      Parameters:
      record - decoded record
    • getByIndex

      IRecord getByIndex(int index)
      Method that reads an entry from the repository
      Parameters:
      index - Index of entry to read in structure
    • update

      void update(IRecord record)
      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

      void setName(String newName)
      Method for setting the name of an encrypted data structure
      Parameters:
      newName - new data structure name
    • filterByInfo

      IStorage filterByInfo(String query)
      Method for filtering structure records
      Parameters:
      query - filter string