/** * Compares a query bond with this query bond. * * @param object Object of type Bond * @return true if the query bond is equal to this query bond */ @Override public boolean compare(Object object) { if (object instanceof IQueryBond) { QueryBond queryBond = (QueryBond) object; for (IAtom atom : atoms) { if (!queryBond.contains(atom)) { return false; } } return true; } return false; }