类 ConditionMessage.ItemsBuilder
- java.lang.Object
- org.springframework.boot.autoconfigure.condition.ConditionMessage.ItemsBuilder
- 封闭类:
- ConditionMessage
public final class ConditionMessage.ItemsBuilder extends Object
Builder used to create aConditionMessage.ItemsBuilderfor a condition.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ConditionMessageatAll()Used when no items are available.ConditionMessageitems(Object... items)Indicate the items.ConditionMessageitems(Collection<?> items)Indicate the items.ConditionMessageitems(ConditionMessage.Style style, Object... items)Indicate the items.ConditionMessageitems(ConditionMessage.Style style, Collection<?> items)Indicate the items with aConditionMessage.Style.
方法详细资料
atAll
public ConditionMessage atAll()
Used when no items are available. For exampledidNotFind("any beans").atAll()results in the message "did not find any beans".- 返回:
- a built
ConditionMessage
items
public ConditionMessage items(Object... items)
Indicate the items. For exampledidNotFind("bean", "beans").items("x", "y")results in the message "did not find beans x, y".- 参数:
items- the items (may benull)- 返回:
- a built
ConditionMessage
items
public ConditionMessage items(ConditionMessage.Style style, Object... items)
Indicate the items. For exampledidNotFind("bean", "beans").items("x", "y")results in the message "did not find beans x, y".- 参数:
style- the render styleitems- the items (may benull)- 返回:
- a built
ConditionMessage
items
public ConditionMessage items(Collection<?> items)
Indicate the items. For exampledidNotFind("bean", "beans").items(Collections.singleton("x")results in the message "did not find bean x".- 参数:
items- the source of the items (may benull)- 返回:
- a built
ConditionMessage
items
public ConditionMessage items(ConditionMessage.Style style, Collection<?> items)
Indicate the items with aConditionMessage.Style. For exampledidNotFind("bean", "beans").items(Style.QUOTE, Collections.singleton("x")results in the message "did not find bean 'x'".- 参数:
style- the render styleitems- the source of the items (may benull)- 返回:
- a built
ConditionMessage