Class ItemCacheImpl

    • Method Detail

      • getItem

        public Item getItem​(ItemState state)
        Description copied from interface: ItemCache
        Returns the cached Item that belongs to the given ItemState or null if the cache does not contain that Item.
        Specified by:
        getItem in interface ItemCache
        Parameters:
        state - State of the item that should be retrieved.
        Returns:
        The item reference stored in the corresponding cache entry or null if there's no corresponding cache entry.
        See Also:
        ItemCache.getItem(ItemState)
      • clear

        public void clear()
        Description copied from interface: ItemCache
        Clear all entries in the ItemCache and free resources.
        Specified by:
        clear in interface ItemCache
        See Also:
        ItemCache.clear()
      • itemUpdated

        public void itemUpdated​(Item item,
                                boolean modified)
        Description copied from interface: ItemLifeCycleListener
        Called when an Item instance has been refreshed. If modified is true, the refresh included some modification.
        Specified by:
        itemUpdated in interface ItemLifeCycleListener
        Parameters:
        item - the instance which has been refreshed
      • toString

        public String toString()
        Returns the the state of this instance in a human readable format.
        Overrides:
        toString in class Object