01: // Copyright (c) 2001 Per M.A. Bothner and Brainfood Inc.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.lists;
05:
06: /** General interface to arrays of arbitrary dimension. */
07:
08: public interface Array {
09: /**
10: * Get the rank (number of dimensions) of this array.
11: * The rank of a scalar is 0, of a Sequence is 1, of a matrix is 2, etc.
12: */
13: public int rank();
14:
15: public int getEffectiveIndex(int[] indexes);
16:
17: public Object get(int[] indexes);
18:
19: public Object set(int[] indexes, Object value);
20: }
|