Code example for ImmutableSet.Builder

Methods: add

   public void endElement(String uri, String name, String qName) throws SAXException {
      if (qName.equals(resultElement)) {
         inResult = false;
      } else if (qName.equals("BatchResultErrorEntry")) {
         inError = false;
      } else if (inResult) {
         resultHandler.endElement(uri, name, qName);
      } else if (inError) {
         errorHandler.endElement(uri, name, qName);
   public void characters(char ch[], int start, int length) throws SAXException {
      if (inResult) {
         resultHandler.characters(ch, start, length);
      } else if (inError) {
         errorHandler.characters(ch, start, length);
Connect your IDE to all the code out there  Get Codota for Java