Code example for Supplier

Methods: get

0
      } else if (qName.equals("instanceId")) {
         instanceId = currentOrNull();
      } else if (qName.equals("item")) {
         String region = AWSUtils.findRegionInArgsOrNull(getRequest());
         if (region == null)
            region = defaultRegion.get();
         pairs.add(new PublicIpInstanceIdPair(region, ipAddress, instanceId));
         ipAddress = null;
         instanceId = null;
      } 
      currentText.setLength(0);
   } 
 
   public void characters(char ch[], int start, int length) {
      currentText.append(ch, start, length);
   } 
 
   @Override 
   public Set<PublicIpInstanceIdPair> getResult() {
      return pairs;