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