Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cisco.oss.foundation.directory.lb;
 
 import java.util.List;
 
	private final String serviceName ;
	private final ServiceInstanceQuery query;
	public ServiceQueryRRLoadBalancer(DirectoryLookupService lookupServiceString serviceNameServiceInstanceQuery query) {
		super(lookupService);
		this. = serviceName;
		this. = query;
	}
		return ;
	}
		return ;
	}
		if(modelSvc != null && ! modelSvc.isEmpty()){
			List<ModelServiceInstancefilteredInstances = ServiceInstanceQueryHelper.filter(modelSvc);
			if(filteredInstances.size() > 0){
				for(ModelServiceInstance model : filteredInstances){
					instances.add(model);
				}
				return instances;
			}
		}
		return Collections.emptyList();
	}
New to GrepCode? Check out our FAQ X