Class ArchPredicates
- java.lang.Object
-
- com.tngtech.archunit.lang.conditions.ArchPredicates
-
public class ArchPredicates extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> DescribedPredicate<T>
are(DescribedPredicate<T> predicate)
This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
be(DescribedPredicate<T> predicate)
This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
has(DescribedPredicate<T> predicate)
This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
have(DescribedPredicate<T> predicate)
This method is just syntactic sugar, e.g.static <T> DescribedPredicate<T>
is(DescribedPredicate<T> predicate)
This method is just syntactic sugar, e.g.
-
-
-
Method Detail
-
is
@PublicAPI(usage=ACCESS) public static <T> DescribedPredicate<T> is(DescribedPredicate<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<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<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<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<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
-
-