Module ch.bind.philib
Package ch.bind.philib.util
Class ClusteredHashIndex<K,T extends ClusteredIndex.Entry<K>>
- java.lang.Object
-
- ch.bind.philib.util.ClusteredHashIndex<K,T>
-
- All Implemented Interfaces:
ClusteredIndex<K,T>
public final class ClusteredHashIndex<K,T extends ClusteredIndex.Entry<K>> extends Object implements ClusteredIndex<K,T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ch.bind.philib.util.ClusteredIndex
ClusteredIndex.Entry<K>
-
-
Constructor Summary
Constructors Constructor Description ClusteredHashIndex(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T entry)voidclear()Tget(K key)booleanremove(T entry)
-
-
-
Method Detail
-
add
public boolean add(T entry)
- Specified by:
addin interfaceClusteredIndex<K,T extends ClusteredIndex.Entry<K>>
-
remove
public boolean remove(T entry)
- Specified by:
removein interfaceClusteredIndex<K,T extends ClusteredIndex.Entry<K>>
-
get
public T get(K key)
- Specified by:
getin interfaceClusteredIndex<K,T extends ClusteredIndex.Entry<K>>
-
clear
public void clear()
- Specified by:
clearin interfaceClusteredIndex<K,T extends ClusteredIndex.Entry<K>>
-
-