Lines Matching refs:components

94    * components evaluates to {@code true}. The components are evaluated in
98 * components} is empty, the returned predicate will always evaluate to {@code
102 Iterable<? extends Predicate<? super T>> components) {
103 return new AndPredicate<T>(defensiveCopy(components));
108 * components evaluates to {@code true}. The components are evaluated in
112 * components} is empty, the returned predicate will always evaluate to {@code
115 public static <T> Predicate<T> and(Predicate<? super T>... components) {
116 return new AndPredicate<T>(defensiveCopy(components));
121 * components evaluate to {@code true}. The components are evaluated in
133 * components evaluates to {@code true}. The components are evaluated in
137 * components} is empty, the returned predicate will always evaluate to {@code
141 Iterable<? extends Predicate<? super T>> components) {
142 return new OrPredicate<T>(defensiveCopy(components));
147 * components evaluates to {@code true}. The components are evaluated in
151 * components} is empty, the returned predicate will always evaluate to {@code
154 public static <T> Predicate<T> or(Predicate<? super T>... components) {
155 return new OrPredicate<T>(defensiveCopy(components));
160 * components evaluates to {@code true}. The components are evaluated in
330 private final List<? extends Predicate<? super T>> components;
332 private AndPredicate(List<? extends Predicate<? super T>> components) {
333 this.components = components;
337 for (int i = 0; i < components.size(); i++) {
338 if (!components.get(i).apply(t)) {
346 return components.hashCode() + 0x12472c2c;
351 return components.equals(that.components);
356 return "And(" + COMMA_JOINER.join(components) + ")";
363 private final List<? extends Predicate<? super T>> components;
365 private OrPredicate(List<? extends Predicate<? super T>> components) {
366 this.components = components;
370 for (int i = 0; i < components.size(); i++) {
371 if (components.get(i).apply(t)) {
379 return components.hashCode() + 0x053c91cf;
384 return components.equals(that.components);
389 return "Or(" + COMMA_JOINER.join(components) + ")";