01: package org.odmg;
02:
03: import java.util.List;
04:
05: /**
06: * The interface that defines the operations of an ODMG array.
07: * Nearly all of its operations are defined by the JavaSoft <code>List</code> interface.
08: * All of the operations defined by the JavaSoft <code>List</code>
09: * interface are supported by an ODMG implementation of <code>DArray</code>,
10: * the exception <code>UnsupportedOperationException</code> is not thrown when a
11: * call is made to any of the <code>List</code> methods.
12: * An instance of a class implementing this interface can be obtained
13: * by calling the method <code>Implementation.newDArray</code>.
14: * @author David Jordan (as Java Editor of the Object Data Management Group)
15: * @version ODMG 3.0
16: */
17: // @see java.lang.UnsupportedOperationException
18: public interface DArray extends org.odmg.DCollection, java.util.List {
19: /**
20: * Resize the array to have <code>newSize</code> elements.
21: * @param newSize The new size of the array.
22: */
23: public void resize(int newSize);
24: }
|