Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.phonedeck.gcm4j;
  
  import java.net.URL;
  import java.util.List;
  
Configuration of the DefaultGcmClient.
 
 public class GcmConfig {
 
     private URL endpoint;
     
     private String key;
     
     
     
     private List<GcmFilterfilters;
     
     
     
     public GcmConfig withEndpoint(URL endpoint) {
         setEndpoint(endpoint);
         return this;
     }
     
     public GcmConfig withKey(String key) {
         setKey(key);
         return this;
     }
     
     public GcmConfig withConnectionFactory(ConnectionFactory connectionFactory) {
         setConnectionFactory(connectionFactory);
         return this;
     }
     
     public GcmConfig withExecutor(ListeningExecutorService executor) {
         setExecutor(executor);
         return this;
     }
     
     public GcmConfig withFilters(List<GcmFilterfilters) {
         setFilters(filters);
         return this;
     }
     
     public GcmConfig withFilter(GcmFilter filter) {
         if (getFilters() == null) {
             setFilters(new ArrayList<GcmFilter>());
         }
         getFilters().add(filter);
         return this;
     }
     
     
     
     
     public URL getEndpoint() {
         return ;
     }
     
     public void setEndpoint(URL endpoint) {
         this. = endpoint;
     }
     
     public String getKey() {
         return ;
     }
     
     public void setKey(String key) {
         this. = key;
     }
     
         return ;
     }
     
     public void setConnectionFactory(ConnectionFactory connectionFactory) {
         this. = connectionFactory;
     }
         
     public List<GcmFiltergetFilters() {
         return ;
     }
     
     public void setFilters(List<GcmFilterfilters) {
         this. = filters;
     }
         
     public void setExecutor(ListeningExecutorService executor) {
         this. = executor;
     }
     
     public ListeningExecutorService getExecutor() {
         return ;
    }
New to GrepCode? Check out our FAQ X