Code example for ImmutableSet.Builder

Methods: build

0
                     .getInboundPorts(), true); 
         } 
         // this will create if not yet exists. 
         securityGroupMap.getUnchecked(regionNameAndIngressRulesForMarkerGroup); 
      } 
      return groups.build(); 
   } 
 
   protected boolean userSpecifiedTheirOwnGroups(TemplateOptions options) { 
      return options instanceof EC2TemplateOptions && !EC2TemplateOptions.class.cast(options).getGroups().isEmpty(); 
   } 
 
   // allows us to mock this method 
   @VisibleForTesting 
   public javax.inject.Provider<RunInstancesOptions> getOptionsProvider() { 
      return optionsProvider; 
   } 
}