Home | History | Annotate | Download | only in util

Lines Matching refs:components

31      * Returns a Predicate that evaluates to true iff each of its components
32 * evaluates to true. The components are evaluated in order, and evaluation
35 public static <T> Predicate<T> and(Predicate<? super T>... components) {
36 return and(Arrays.asList(components));
40 * Returns a Predicate that evaluates to true iff each of its components
41 * evaluates to true. The components are evaluated in order, and evaluation
44 * the behavior of this Predicate. If components is empty, the returned
47 public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) {
48 return new AndPredicate(components);
52 * Returns a Predicate that evaluates to true iff any one of its components
53 * evaluates to true. The components are evaluated in order, and evaluation
56 public static <T> Predicate<T> or(Predicate<? super T>... components) {
57 return or(Arrays.asList(components));
61 * Returns a Predicate that evaluates to true iff any one of its components
62 * evaluates to true. The components are evaluated in order, and evaluation
65 * the behavior of this Predicate. If components is empty, the returned
68 public static <T> Predicate<T> or(Iterable<? extends Predicate<? super T>> components) {
69 return new OrPredicate(components);
81 private final Iterable<? extends Predicate<? super T>> components;
83 private AndPredicate(Iterable<? extends Predicate<? super T>> components) {
84 this.components = components;
88 for (Predicate<? super T> predicate : components) {
98 private final Iterable<? extends Predicate<? super T>> components;
100 private OrPredicate(Iterable<? extends Predicate<? super T>> components) {
101 this.components = components;
105 for (Predicate<? super T> predicate : components) {