Code example for Set

Methods: addaddAllcontains

0
	 * within the current level of beans element nesting. 
	 */ 
	protected void checkNameUniqueness(String beanName, List<String> aliases, Element beanElement) {
		String foundName = null;
 
		if (StringUtils.hasText(beanName) && this.usedNames.contains(beanName)) {
			foundName = beanName;
		} 
		if (foundName == null) {
			foundName = CollectionUtils.findFirstMatch(this.usedNames, aliases);
		} 
		if (foundName != null) {
			error("Bean name '" + foundName + "' is already used in this <beans> element", beanElement);
		} 
 
		this.usedNames.add(beanName);
		this.usedNames.addAll(aliases);
	} 
 
	/** 
	 * Parse the bean definition itself, without regard to name or aliases. May return 
	 * {@code null} if problems occurred during the parsing of the bean definition. 
Contextual code suggestions in your IDE  Get Codota for Java