Package com.jalios.jcms
Class AbstractIndexManager.DataIndexSet<D extends Data,E>
java.lang.Object
com.jalios.jcms.AbstractIndexManager.DataIndex<D,Set<E>>
com.jalios.jcms.AbstractIndexManager.DataIndexSet<D,E>
- Type Parameters:
D- the data type for which index is being createdE- the type of element stored in the indexed set
- Enclosing class:
AbstractIndexManager
public static class AbstractIndexManager.DataIndexSet<D extends Data,E>
extends AbstractIndexManager.DataIndex<D,Set<E>>
Pseudo Set to store previoulsy computed information associated to Data and DBData
- Since:
- 9.0.3 - JCMS-5258
-
Field Summary
Fields inherited from class com.jalios.jcms.AbstractIndexManager.DataIndex
dataMap, dbDataMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd the specified element to the Set corresponding to the specified data.voidRemoves all of the elements from the Set associated to the specified Data.Retrieve the Set associated to the specified data.booleanRemoves the specified element from the Set corresponding to the specified data.Set the Set to associate to the specified data.Methods inherited from class com.jalios.jcms.AbstractIndexManager.DataIndex
clear, getOriginalData, putIndexCollection, removeIndexCollection
-
Constructor Details
-
DataIndexSet
public DataIndexSet()
-
-
Method Details
-
get
Retrieve the Set associated to the specified data.- Parameters:
data- the data for which the IndexSet is being retrieved- Returns:
- an unmodifiable Set, never return null (instead return empty set)
-
set
Set the Set to associate to the specified data.- Parameters:
data- the data for which the IndexSet is being modifiedset- the set to define- Returns:
- the previous set associated with
data, ornullif there was no mapping fordata.
-
add
Add the specified element to the Set corresponding to the specified data.- Parameters:
data- the data for which the IndexSet is being modifiedelement- the element to add. Important : if a DBData is specified it will be ignored and won't be added- Returns:
trueif this set did not already contain the specified element
-
remove
Removes the specified element from the Set corresponding to the specified data.- Parameters:
data- the data for which the IndexSet is being modifiedobj- object to be removed from the set, if present- Returns:
trueif this set contained the specified element
-
clear
Removes all of the elements from the Set associated to the specified Data. The set will be empty after this call returns.- Parameters:
data- the data for which the IndexSet is being modified
-