Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/odmg/DList.java


1   package org.odmg;
2   
3   /**
4    * The ODMG List collection.
5    * A <code>DList</code> collection is an ordered collection that provides
6    * efficient insertion and removal of elements at arbitrary positions in the
7    * list, but it also supports indexed access. The beginning index value is 0.
8    * When an element is added at a given position in the list, the index of all
9    * 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  
21  public interface DList extends DCollection, java.util.List
22  {
23      /**
24       * Creates a new <code>DList</code> object that contains the contents of this
25       * <code>DList</code> object concatenated
26       * with the contents of the <code>otherList</code> object.
27       * @param  otherList  The list whose elements are placed at the end of the list
28       * returned by this method.
29       * @return  A new <code>DList</code> that is the concatenation of this list and
30       * the list referenced by <code>otherList</code>.
31       */
32      public DList concat(DList otherList);
33  }