01: package org.odmg;
02:
03: /* Copyright 2004-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * The interface that defines the operations of an ODMG array.
20: * Nearly all of its operations are defined by the JavaSoft <code>List</code> interface.
21: * All of the operations defined by the JavaSoft <code>List</code>
22: * interface are supported by an ODMG implementation of <code>DArray</code>,
23: * the exception <code>UnsupportedOperationException</code> is not thrown when a
24: * call is made to any of the <code>List</code> methods.
25: * An instance of a class implementing this interface can be obtained
26: * by calling the method <code>Implementation.newDArray</code>.
27: * @author David Jordan (as Java Editor of the Object Data Management Group)
28: * @version ODMG 3.0
29: */
30: // @see java.lang.UnsupportedOperationException
31: public interface DArray extends org.odmg.DCollection, java.util.List {
32: /**
33: * Resize the array to have <code>newSize</code> elements.
34: * @param newSize The new size of the array.
35: */
36: public void resize(int newSize);
37: }
|