Package org.linkki.core.ui.aspects
Class ItemCache
- java.lang.Object
-
- org.linkki.core.ui.aspects.ItemCache
-
public class ItemCache extends Object
A cache of items. Used to detect changes in items or their captions inAvailableValuesAspectDefinition.
-
-
Constructor Summary
Constructors Constructor Description ItemCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>getItems()Returns a read-only view of the items in the cache.booleanreplaceContent(List<Object> newItems)Replaces the cache with the given content.
-
-
-
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 viareplaceContent(List)are reflected in the returned list.
-
-