spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java
/**
		 * Indicate the items with a {@link Style}. For example
		 * {@code didNotFind("bean", "beans").items(Style.QUOTE, Collections.singleton("x")}
		 * results in the message "did not find bean 'x'".
		 * @param style the render style
		 * @param items the source of the items (may be {@code null})
		 * @return a built {@link ConditionMessage}
		 */
Indicate the items with a  Style.
Indicate the items with a Style .
public ConditionMessage items(Style style, Collection<?> items) {
			Assert.notNull(style, "Style must not be null");
			StringBuilder message = new StringBuilder(this.reason);
			items = style.applyTo(items);
			if ((this.condition == null || items == null || items.size() <= 1)
					&& StringUtils.hasLength(this.singular)) {
				message.append(" ").append(this.singular);
			}
			else if (StringUtils.hasLength(this.plural)) {
				message.append(" ").append(this.plural);
			}
			if (items != null && !items.isEmpty()) {
				message.append(" ").append(StringUtils.collectionToDelimitedString(items, ", "));
			}
			return this.condition.because(message.toString());
		}
public ConditionMessage items ( Style style , Collection < ? > items ) { Assert . notNull ( style , "Style must not be null" ) ; StringBuilder message = new StringBuilder ( this . reason ) ; items = style . applyTo ( items ) ; if ( ( this . condition == null || items == null || items . size ( ) <= 1 ) && StringUtils . hasLength ( this . singular ) ) { message . append ( " " ) . append ( this . singular ) ; } else if ( StringUtils . hasLength ( this . plural ) ) { message . append ( " " ) . append ( this . plural ) ; } if ( items != null && ! items . isEmpty ( ) ) { message . append ( " " ) . append ( StringUtils . collectionToDelimitedString ( items , ", " ) ) ; } return this . condition . because ( message . toString ( ) ) ; }
Indicate the items with a {@link Style}.
Indicate the items with a { @link Style } .