org.openmdx.base.collection
Class MergingList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList
              extended by org.openmdx.base.collection.MergingList
All Implemented Interfaces:
Iterable, Collection, List

public class MergingList
extends AbstractSequentialList

Author:
hburger To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  Comparator comparator
           
protected  List[] lists
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MergingList(List x, List y, Comparator comparator)
          The method accept must be overridden if selector is null.
 
Method Summary
 boolean isEmpty()
           
 ListIterator listIterator(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

lists

protected List[] lists

comparator

protected Comparator comparator
Constructor Detail

MergingList

public MergingList(List x,
                   List y,
                   Comparator comparator)
The method accept must be overridden if selector is null.

Parameters:
list -
selector -
Method Detail

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List
Specified by:
listIterator in class AbstractSequentialList

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List
Overrides:
isEmpty in class AbstractCollection


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.