/** * Checks whether this <code>LineString</code> is a ring, i.e. is closed and non-empty. * * <p>Note that this implementation allows rings thate are non-simple.</p> * * @return true if this <code>LineString</code> is a ring. */ public boolean isRing() { return !isEmpty() && isClosed(); }