code: public static boolean equal(DBIDRef id1, DBIDRef id2) {
      return DBIDFactory.FACTORY.equal(id1, id2);
    }
docs: Test two DBIDs for equality.
  
  @param id1 First ID
  @param id2 Second ID
  @return Comparison result