public RArrayImpl(final DataType data, final String className1, final int[] dim) { if (data == null || className1 == null || dim == null) { throw new NullPointerException(); } if (data.getLength() >= 0) { checkDim(data.getLength(), dim); } this.className1 = className1; this.dimAttribute = new RIntegerDataImpl(dim); this.data = data; }