/** Tests whether a connection connects the same figures as another ConnectionFigure. */ public boolean connectsSame(ConnectionFigure other) { return other.getStartConnector() == getStartConnector() && other.getEndConnector() == getEndConnector(); }