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
        state - State of the item that should be retrieved.
        The item reference stored in the corresponding cache entry or null if there's no corresponding cache entry.
        See Also:
      • 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:
      • 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
        item - the instance which has been refreshed
      • toString

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