/** * Optimized version */ public Point getLastPoint() { if ((subgeoms == null) || (subgeoms.length == 0)) { throw new ArrayIndexOutOfBoundsException("Empty Geometry has no Points!"); } else { return subgeoms[subgeoms.length - 1].getLastPoint(); } }
/** * Optimized version */ public Point getLastPoint() { if ((subgeoms == null) || (subgeoms.length == 0)) { throw new ArrayIndexOutOfBoundsException("Empty Geometry has no Points!"); } else { return subgeoms[subgeoms.length - 1].getLastPoint(); } }