Code example for ImmutableSet.Builder

Methods: add

0
   public void endElement(String uri, String name, String qName) throws SAXException {
      if (qName.equals(resultElement)) {
         results.put(resultHandler.getResult());
         inResult = false;
      } else if (qName.equals("BatchResultErrorEntry")) {
         errors.add(errorHandler.getResult());
         inError = false;
      } else if (inResult) {
         resultHandler.endElement(uri, name, qName);
      } else if (inError) {
         errorHandler.endElement(uri, name, qName);
      } 
   } 
 
   @Override 
   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);