Class ArchPredicates


  • public class ArchPredicates
    extends java.lang.Object
    • Method Detail

      • 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