Interface GivenObjects<T>
- All Known Subinterfaces:
GivenClasses
,GivenCodeUnits<CODE_UNIT>
,GivenConstructors
,GivenFields
,GivenMembers<MEMBER>
,GivenMethods
,GivenNamedSlices
,GivenSlices
public interface GivenObjects<T>
-
Method Summary
Modifier and TypeMethodDescriptionshould
(ArchCondition<? super T> condition) Allows to form a rule by passing a condition the objects under consideration must satisfy.that
(DescribedPredicate<? super T> predicate) Allows to restrict the set of objects under consideration.
-
Method Details
-
should
Allows to form a rule by passing a condition the objects under consideration must satisfy. E.g.
all(customObjects)
.should(behaveAsExpected())
- Returns:
- An
ArchRule
which can be evaluated on importedJavaClasses
-
that
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-