code: public Item withInt(String attrName, int val) {
          checkInvalidAttrName(attrName);
          return withNumber(attrName, Integer.valueOf(val));
      }
docs: Sets the value of the specified attribute in the current item to the
  given value.