Code example for Set

Methods: sizetoArray

0
	public String[] getDependenciesForBean(String beanName) {
		Set<String> dependenciesForBean = this.dependenciesForBeanMap.get(beanName);
		if (dependenciesForBean == null) {
			return new String[0];
		} 
		return dependenciesForBean.toArray(new String[dependenciesForBean.size()]);
	} 
 
	public void destroySingletons() { 
		if (logger.isDebugEnabled()) {
			logger.debug("Destroying singletons in " + this);
		} 
		synchronized (this.singletonObjects) {
			this.singletonsCurrentlyInDestruction = true;
		} 
 
		String[] disposableBeanNames;
		synchronized (this.disposableBeans) {
			disposableBeanNames = StringUtils.toStringArray(this.disposableBeans.keySet());
		} 
Contextual code suggestions in your IDE  Get Codota for Java