Class ArchPredicates


  • public class ArchPredicates
    extends java.lang.Object
    • 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