Code example for ImmutableSet.Builder

Methods: build

0
   public SpotInstancesHandler(SpotInstanceHandler spotRequestHandler) {
      this.spotRequestHandler = spotRequestHandler;
   } 
 
   public Set<SpotInstanceRequest> getResult() {
      return spotRequests.build();
   } 
 
   @Override 
   public HandlerWithResult<Set<SpotInstanceRequest>> setContext(HttpRequest request) {
      spotRequestHandler.setContext(request);
      return super.setContext(request);
   } 
 
   @Override 
   public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
      if (qName.equals("item"))
         itemDepth++;
      if (itemDepth >= 1)
         spotRequestHandler.startElement(uri, localName, qName, attributes);
Contextual code suggestions in your IDE  Get Codota for Java