01: package org.odmg;
02:
03: /**
04: * The ODMG List collection.
05: * A <code>DList</code> collection is an ordered collection that provides
06: * efficient insertion and removal of elements at arbitrary positions in the
07: * list, but it also supports indexed access. The beginning index value is 0.
08: * When an element is added at a given position in the list, the index of all
09: * subsequent elements is increased by 1. Similarly, when an element is removed
10: * from the list, the index of all subsequent elements is decreased by 1.
11: * <p>
12: * All of the operations defined by the JavaSoft <code>List</code>
13: * interface are supported by an ODMG implementation of <code>DList</code>,
14: * the exception <code>UnsupportedOperationException</code> is not thrown when a
15: * call is made to any of the <code>List</code> methods.
16: * @author David Jordan (as Java Editor of the Object Data Management Group)
17: * @version ODMG 3.0
18: */
19: // * @see com.sun.java.util.collections.UnsupportedOperationException
20: public interface DList extends DCollection, java.util.List {
21: /**
22: * Creates a new <code>DList</code> object that contains the contents of this
23: * <code>DList</code> object concatenated
24: * with the contents of the <code>otherList</code> object.
25: * @param otherList The list whose elements are placed at the end of the list
26: * returned by this method.
27: * @return A new <code>DList</code> that is the concatenation of this list and
28: * the list referenced by <code>otherList</code>.
29: */
30: public DList concat(DList otherList);
31: }
|