@Test public void shouldCopyRegionRightInArray() throws NoSuchMethodException { final long length = 11; final PointArray array = PointArray.newInstance(length); initValues(new long[]{length}, array); StructuredArray.shallowCopy(array, 5, array, 6, 2, false); Assert.assertThat(valueOf(array.get(5).getX()), CoreMatchers.is(valueOf(5))); Assert.assertThat(valueOf(array.get(6).getX()), CoreMatchers.is(valueOf(5))); Assert.assertThat(valueOf(array.get(7).getX()), CoreMatchers.is(valueOf(6))); }
public static PointArray newInstance(final long length) { return StructuredArray.newInstance(PointArray.class, Point.class, length); }
PointArray extends StructuredArray<Point> { public static PointArray newInstance(final long length) { return StructuredArray.newInstance(PointArray.class, Point.class, length); } }
PointArray extends StructuredArray<Point> { public static PointArray newInstance(final long length) { return StructuredArray.newInstance(PointArray.class, Point.class, length); } PointArray(PointArray source);  PointArray(); }
PointArray extends StructuredArray<Point> { public static PointArray newInstance(final long length) { return StructuredArray.newInstance(PointArray.class, Point.class, length); } PointArray(PointArray source);  PointArray(); static PointArray newInstance(final long length); static PointArray newInstance(final long length,
                                           final CtorAndArgsProvider<Point> ctorAndArgsProvider); static PointArray newInstance(final long length, final long x, final long y); }
PointArray extends StructuredArray<Point> { public static PointArray newInstance(final long length) { return StructuredArray.newInstance(PointArray.class, Point.class, length); } PointArray(PointArray source);  PointArray(); static PointArray newInstance(final long length); static PointArray newInstance(final long length,
                                           final CtorAndArgsProvider<Point> ctorAndArgsProvider); static PointArray newInstance(final long length, final long x, final long y);  }