D
- the data type for which index is being createdE
- the type of element stored in the indexed setpublic static class AbstractIndexManager.DataIndexSet<D extends Data,E> extends AbstractIndexManager.DataIndex<D,java.util.Set<E>>
dataMap, dbDataMap
Constructor and Description |
---|
DataIndexSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(D data,
E element)
Add the specified element to the Set corresponding to the specified data.
|
void |
clear(D data)
Removes all of the elements from the Set associated to the specified Data.
|
java.util.Set<E> |
get(D data)
Retrieve the Set associated to the specified data.
|
boolean |
remove(D data,
E obj)
Removes the specified element from the Set corresponding to the specified data.
|
java.util.Set<E> |
set(D data,
java.util.Set<E> set)
Set the Set to associate to the specified data.
|
getOriginalData, putIndexCollection, removeIndexCollection
public java.util.Set<E> get(D data)
data
- the data for which the IndexSet is being retrievedpublic java.util.Set<E> set(D data, java.util.Set<E> set)
data
- the data for which the IndexSet is being modifiedset
- the set to definepublic boolean add(D data, E element)
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 addedpublic boolean remove(D data, E obj)
data
- the data for which the IndexSet is being modifiedobj
- object to be removed from the set, if presentpublic void clear(D data)
data
- the data for which the IndexSet is being modifiedCopyright © 2001-2017 Jalios SA. All Rights Reserved.