Class ArchPredicates
java.lang.Object
com.tngtech.archunit.lang.conditions.ArchPredicates
-
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
-