001    package org.odmg;
002    
003    
004    
005    /**
006    
007     * The ODMG List collection.
008    
009     * A <code>DList</code> collection is an ordered collection that provides
010    
011     * efficient insertion and removal of elements at arbitrary positions in the
012    
013     * list, but it also supports indexed access. The beginning index value is 0.
014    
015     * When an element is added at a given position in the list, the index of all
016    
017     * subsequent elements is increased by 1. Similarly, when an element is removed
018    
019     * from the list, the index of all subsequent elements is decreased by 1.
020    
021     * <p>
022    
023     * All of the operations defined by the JavaSoft <code>List</code>
024    
025     * interface are supported by an ODMG implementation of <code>DList</code>,
026    
027     * the exception <code>UnsupportedOperationException</code> is not thrown when a
028    
029     * call is made to any of the <code>List</code> methods.
030    
031     * @author      David Jordan (as Java Editor of the Object Data Management Group)
032    
033     * @version ODMG 3.0
034    
035     */
036    
037    // * @see com.sun.java.util.collections.UnsupportedOperationException
038    
039    
040    
041    public interface DList extends DCollection, java.util.List
042    
043    {
044    
045        /**
046    
047         * Creates a new <code>DList</code> object that contains the contents of this
048    
049         * <code>DList</code> object concatenated
050    
051         * with the contents of the <code>otherList</code> object.
052    
053         * @param   otherList       The list whose elements are placed at the end of the list
054    
055         * returned by this method.
056    
057         * @return  A new <code>DList</code> that is the concatenation of this list and
058    
059         * the list referenced by <code>otherList</code>.
060    
061         */
062    
063        public DList concat(DList otherList);
064    
065    }
066