Code example for ImmutableSet.Builder

Methods: add

0
   } 
 
   @Override 
   public void endElement(String uri, String localName, String qName) throws SAXException {
      if (qName.equals("item") && itemDepth == 1) {
         spotRequests.add(spotRequestHandler.getResult());
      } 
      if (qName.equals("item"))
         itemDepth--;
      if (itemDepth >= 1)
         spotRequestHandler.endElement(uri, localName, qName);
   } 
 
   public void characters(char ch[], int start, int length) {
      if (itemDepth >= 1)
         spotRequestHandler.characters(ch, start, length);
   } 
 
}