org.zilonis.util
Class Index<Type extends IMultiListElement>
java.lang.Object
org.zilonis.util.Index<Type>
- All Implemented Interfaces:
- NextHolder
- Direct Known Subclasses:
- AlphaMemoryIndex, BetaMemoryTokensIndex, WMEIndex
public abstract class Index<Type extends IMultiListElement>
- extends java.lang.Object
- implements NextHolder
|
Constructor Summary |
Index(int list)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Index
public Index(int list)
get
public Type get(int hashCode)
getSegment
public java.util.concurrent.locks.ReentrantLock getSegment(int position)
lock
public void lock(int list,
IMultiListElement element)
- Specified by:
lock in interface NextHolder
unlock
public void unlock(int list,
IMultiListElement element)
- Specified by:
unlock in interface NextHolder
getHashCode
public abstract int getHashCode(Type element)
setNext
public void setNext(int list,
IMultiListElement element)
- Specified by:
setNext in interface NextHolder
removeLast
public void removeLast(int list,
IMultiListElement element)
- Specified by:
removeLast in interface NextHolder
add
public void add(Type element)
add
public void add(int list,
Type element)
validateList
public void validateList(int list)