/** * Checks whether this <code>LineString</code> is closed, i.e. the first <code>Point</code> equals the last. * * @return true if this <code>LineString</code> is closed. */ public boolean isClosed() { return !isEmpty() && getStartPosition().equals(getEndPosition()); }