@Override public ShapePoint get(int index) { if (index < 0 || index >= size) { throw new NoSuchElementException(); } ShapePoint shapePoint = new ShapePoint(); shapePoint.setProxy(new ShapePointProxyImpl(index)); return shapePoint; }
@Override public ShapePoint get(int index) { if (index < 0 || index >= size) { throw new NoSuchElementException(); } ShapePoint shapePoint = new ShapePoint(); shapePoint.setProxy(new ShapePointProxyImpl(index)); return shapePoint; }
@Override public ShapePoint next() { if (!hasNext()) { throw new NoSuchElementException(); } ShapePoint shapePoint = new ShapePoint(); shapePoint.setProxy(new ShapePointProxyImpl(index)); index++; return shapePoint; }
@Override public ShapePoint next() { if (!hasNext()) { throw new NoSuchElementException(); } ShapePoint shapePoint = new ShapePoint(); shapePoint.setProxy(new ShapePointProxyImpl(index)); index++; return shapePoint; }