KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > odmg > DList


1 package org.odmg;
2
3
4
5 /**
6
7  * The ODMG List collection.
8
9  * A <code>DList</code> collection is an ordered collection that provides
10
11  * efficient insertion and removal of elements at arbitrary positions in the
12
13  * list, but it also supports indexed access. The beginning index value is 0.
14
15  * When an element is added at a given position in the list, the index of all
16
17  * subsequent elements is increased by 1. Similarly, when an element is removed
18
19  * from the list, the index of all subsequent elements is decreased by 1.
20
21  * <p>
22
23  * All of the operations defined by the JavaSoft <code>List</code>
24
25  * interface are supported by an ODMG implementation of <code>DList</code>,
26
27  * the exception <code>UnsupportedOperationException</code> is not thrown when a
28
29  * call is made to any of the <code>List</code> methods.
30
31  * @author David Jordan (as Java Editor of the Object Data Management Group)
32
33  * @version ODMG 3.0
34
35  */

36
37 // * @see com.sun.java.util.collections.UnsupportedOperationException
38

39
40
41 public interface DList extends DCollection, java.util.List JavaDoc
42
43 {
44
45     /**
46
47      * Creates a new <code>DList</code> object that contains the contents of this
48
49      * <code>DList</code> object concatenated
50
51      * with the contents of the <code>otherList</code> object.
52
53      * @param otherList The list whose elements are placed at the end of the list
54
55      * returned by this method.
56
57      * @return A new <code>DList</code> that is the concatenation of this list and
58
59      * the list referenced by <code>otherList</code>.
60
61      */

62
63     public DList concat(DList otherList);
64
65 }
66
67
Popular Tags