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