Interface WriteableObjectPool<T extends DataObject>

    • Method Detail

      • remove

        T remove​(T object)
        Removes the given data object from the pool. The objectId of the removed object should be automatically removed from the object.
        Parameters:
        object - The object to remove
        Returns:
        The removed object or null if the object was not in the pool.
      • remove

        T remove​(String objectId)
        Removes the object with the given offset from the pool. The objectId of the removed object should be automatically removed from the object.
        Parameters:
        objectId - The offset of the object that should be removed.
        Returns:
        The removed object or null if the object was not in the pool.
      • store

        String store​(T object)
        Stores a given DataObject into the pool. Thereby, a new unique objectI id is automatically created. If the object is already a member of the pool, nothing will happen.
        Parameters:
        object - The object that should be added.
        Returns:
        The new objectId of the added object.
      • removeAll

        void removeAll()
        Removes all items from the pool
      • sort

        void sort​(Comparator<T> comparator)
        Sorts the objects in pool using the given comparator.
        Parameters:
        comparator -