code: public int addIfNew(int id, Object obj) {
          int result;
  
          result = indexOf(id, obj);
          if (result == -1) {
              result = add(id, obj);
          }
          return result;
      }
docs: --