public abstract class AbstractIndexManager
extends java.lang.Object
Constructor and Description |
---|
AbstractIndexManager() |
Modifier and Type | Method and Description |
---|---|
protected <K extends Data,T> |
addIndexWithSet(java.util.Map<K,java.util.Set<T>> index,
K key,
T value)
Associates the given value to the given key in the given index.
|
protected <K extends Data,V> |
clearIndex(java.util.Map<K,V> index,
K key)
Remove the map at the given key in the given index.
|
protected <K extends Data,X,Y> |
getIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index,
K key)
Returns the map associated to the given key in the given index.
|
protected <K extends Data,X,Y> |
getIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index,
K key,
X name)
Returns the value associated to the given name for the given key in the given index.
|
protected <K extends Data,T> |
getIndexWithSet(java.util.Map<K,java.util.Set<T>> index,
K key)
Returns the set associated to the given key in the given index.
|
protected <K extends Data,T> |
isUndefinedIndexWithSet(java.util.Map<K,java.util.Set<T>> index,
K key)
Returns true is key is null or if no index (even empty) is stored in the given index.
|
protected <K extends Data,X,Y> |
putIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index,
K key,
X name,
Y value)
Associates the given value to the given name at the given key in the given index.
|
protected <K extends Data,X,Y> |
removeIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index,
K key,
X name)
Remove the given name at the given key in the given index.
|
protected <K extends Data,T> |
removeIndexWithSet(java.util.Map<K,java.util.Set<T>> index,
K key,
T value)
Removes the given value for the given key in the given index.
|
protected <K extends Data,T> |
setIndexWithSet(java.util.Map<K,java.util.Set<T>> index,
K key,
java.util.Set<T> set)
Associates the given set to the given key in the given index.
|
protected Channel channel
protected <K extends Data,T> java.util.Set<T> getIndexWithSet(java.util.Map<K,java.util.Set<T>> index, K key)
index
- the indexkey
- the keyprotected <K extends Data,T> boolean isUndefinedIndexWithSet(java.util.Map<K,java.util.Set<T>> index, K key)
index
- the indexkey
- the keyprotected <K extends Data,T> void setIndexWithSet(java.util.Map<K,java.util.Set<T>> index, K key, java.util.Set<T> set)
index
- the indexkey
- the keyset
- the setprotected <K extends Data,T> boolean addIndexWithSet(java.util.Map<K,java.util.Set<T>> index, K key, T value)
index
- the indexkey
- the keyvalue
- the valueprotected <K extends Data,T> boolean removeIndexWithSet(java.util.Map<K,java.util.Set<T>> index, K key, T value)
index
- the indexkey
- the keyvalue
- the valueprotected <K extends Data,X,Y> java.util.Map<X,Y> getIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index, K key)
index
- the indexkey
- the keyprotected <K extends Data,X,Y> Y getIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index, K key, X name)
index
- the indexkey
- the keyname
- the nameprotected <K extends Data,X,Y> void putIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index, K key, X name, Y value)
index
- the indexkey
- the keyname
- the namevalue
- the valueprotected <K extends Data,X,Y> Y removeIndexWithMap(java.util.Map<K,java.util.Map<X,Y>> index, K key, X name)
index
- the indexkey
- the keyname
- the nameprotected <K extends Data,V> void clearIndex(java.util.Map<K,V> index, K key)
index
- the indexkey
- the keyCopyright © 2001-2010 Jalios SA. All Rights Reserved.