Interface AbstractStorage<T>


  • public interface AbstractStorage<T>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      This method purges everything from storage
      boolean containsKey​(T key)
      This method checks, if storage contains specified key
      void drop​(T key)
      This method removes value by specified key
      INDArray get​(T key)
      Get object from the storage, by key
      long size()
      This method returns number of entries available in storage
      void store​(T key, double[] array)
      Store object into storage
      void store​(T key, float[] array)
      Store object into storage
      void store​(T key, INDArray object)
      Store object into storage
      boolean storeIfAbsent​(T key, INDArray object)
      Store object into storage, if it doesn't exist
    • Method Detail

      • store

        void store​(T key,
                   INDArray object)
        Store object into storage
        Parameters:
        key -
        object -
      • store

        void store​(T key,
                   float[] array)
        Store object into storage
        Parameters:
        key -
        array -
      • store

        void store​(T key,
                   double[] array)
        Store object into storage
        Parameters:
        key -
        array -
      • storeIfAbsent

        boolean storeIfAbsent​(T key,
                              INDArray object)
        Store object into storage, if it doesn't exist
        Parameters:
        key -
        object -
      • get

        INDArray get​(T key)
        Get object from the storage, by key
        Parameters:
        key -
      • containsKey

        boolean containsKey​(T key)
        This method checks, if storage contains specified key
        Parameters:
        key -
        Returns:
      • clear

        void clear()
        This method purges everything from storage
      • drop

        void drop​(T key)
        This method removes value by specified key
      • size

        long size()
        This method returns number of entries available in storage