Class ArchPredicates
java.lang.Object
com.tngtech.archunit.lang.conditions.ArchPredicates
Predefined
Note that there are nested classes
For example
predicates
that offer syntactic sugar.
Note that there are nested classes
DomainObject.Predicates
with predefined predicates
for many domain objects by conventionFor example
predicates
targeting JavaClass
can be found
within the class JavaClass.Predicates
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DescribedPredicate<T>
are
(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
be
(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
has
(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
have
(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
is
(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g.
-
Method Details
-
is
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> is(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g. to write aClass.that(is(special))- Type Parameters:
T
- The type of the object to decide on- Parameters:
predicate
- The original predicate- Returns:
- The original predicate with adjusted description
-
are
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> are(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g. to write classes.that(are(special))- Type Parameters:
T
- The type of the object to decide on- Parameters:
predicate
- The original predicate- Returns:
- The original predicate with adjusted description
-
has
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> has(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g. to write method.that(has(type(..))- Type Parameters:
T
- The type of the object to decide on- Parameters:
predicate
- The original predicate- Returns:
- The original predicate with adjusted description
-
have
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> have(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g. to write classes.that(have(type(..))- Type Parameters:
T
- The type of the object to decide on- Parameters:
predicate
- The original predicate- Returns:
- The original predicate with adjusted description
-
be
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> be(DescribedPredicate<? super T> predicate) This method is just syntactic sugar, e.g. to write classes.should(be(public()))- Type Parameters:
T
- The type of the object to decide on- Parameters:
predicate
- The original predicate- Returns:
- The original predicate with adjusted description
-