org.zilonis.util
Class MultiList<Type extends IMultiListElement>

java.lang.Object
  extended by org.zilonis.util.MultiList<Type>
All Implemented Interfaces:
java.lang.Iterable<Type>, NextHolder

public class MultiList<Type extends IMultiListElement>
extends java.lang.Object
implements NextHolder, java.lang.Iterable<Type>


Constructor Summary
MultiList(int list)
           
 
Method Summary
 void add(int list, Type element)
           
 void add(Type element)
           
 boolean isEmpty()
           
 java.util.Iterator<Type> iterator()
           
 void lock(int list, IMultiListElement element)
           
 void removeAll()
           
 void removeLast(int list, IMultiListElement element)
           
 void setNext(int list, IMultiListElement element)
           
 void unlock(int list, IMultiListElement element)
           
 void validateList(int list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiList

public MultiList(int list)
Method Detail

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

removeAll

public void removeAll()

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)

isEmpty

public boolean isEmpty()

iterator

public java.util.Iterator<Type> iterator()
Specified by:
iterator in interface java.lang.Iterable<Type extends IMultiListElement>