Class ItemCache

    • Constructor Detail

      • ItemCache

        public ItemCache()
    • Method Detail

      • replaceContent

        public boolean replaceContent​(List<Object> newItems)
        Replaces the cache with the given content. The return value indicates whether the items changed.
      • getItems

        public List<Object> getItems()
        Returns a read-only view of the items in the cache. Changes via replaceContent(List) are reflected in the returned list.