return new ContainerValueCollectionIterator(container, list, list.getRoot());
}
public Object[] toArray() {
Object[] result = null;
IndexLinkedList list = container.getItemList();
synchronized (list) {
result = new Object[list.size()];
IndexItem item = list.getFirst();
int count = 0;
while (item != null) {
Object value = container.getValue(item);
result[count++] = value;
item = list.getNextEntry(item);
}
}
return result;
}