Package 

Interface ResultStorage


  • 
    public interface ResultStorage<T extends Object>
    
                        

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

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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