Interface ResultStorage

  • All Implemented Interfaces:

    
    public interface ResultStorage<T extends Object>
    
                        

    Stores and provides access to the scanning result of the given type by ResultId

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit putResult(String resultId, T result) Puts the given result to the storage on the given id
      abstract T getResult(String resultId) Returns the result from the storage according to the given id
      abstract Unit removeResult(String resultId) Removes the result from the storage according to the given id
      abstract Unit clear() Removes all the results from the storage
      abstract Class<T> getAcceptedType() Each result repository works with a single class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • putResult

         abstract Unit putResult(String resultId, T result)

        Puts the given result to the storage on the given id

        Parameters:
        resultId - id to store the result on
        result - result to store
      • getResult

         abstract T getResult(String resultId)

        Returns the result from the storage according to the given id

        Parameters:
        resultId - id to return the result from
      • removeResult

         abstract Unit removeResult(String resultId)

        Removes the result from the storage according to the given id

        Parameters:
        resultId - id to remove the result on
      • clear

         abstract Unit clear()

        Removes all the results from the storage