public final class ConditionMessage.ItemsBuilder extends Object
ConditionMessage.ItemsBuilder
for a condition.Modifier and Type | Method and Description |
---|---|
ConditionMessage |
atAll()
Used when no items are available.
|
ConditionMessage |
items(Collection<?> items)
Indicate the items.
|
ConditionMessage |
items(ConditionMessage.Style style,
Collection<?> items)
Indicate the items with a
ConditionMessage.Style . |
ConditionMessage |
items(ConditionMessage.Style style,
Object... items)
Indicate the items.
|
ConditionMessage |
items(Object... items)
Indicate the items.
|
public ConditionMessage atAll()
didNotFind("any beans").atAll()
results in the message "did not find
any beans".ConditionMessage
public ConditionMessage items(Object... items)
didNotFind("bean", "beans").items("x", "y")
results in the message "did
not find beans x, y".items
- the items (may be null
)ConditionMessage
public ConditionMessage items(ConditionMessage.Style style, Object... items)
didNotFind("bean", "beans").items("x", "y")
results in the message "did
not find beans x, y".style
- the render styleitems
- the items (may be null
)ConditionMessage
public ConditionMessage items(Collection<?> items)
didNotFind("bean", "beans").items(Collections.singleton("x")
results in
the message "did not find bean x".items
- the source of the items (may be null
)ConditionMessage
public ConditionMessage items(ConditionMessage.Style style, Collection<?> items)
ConditionMessage.Style
. For example
didNotFind("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 be null
)ConditionMessage
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.