Lines Matching refs:components

91    * components evaluates to {@code true}. The components are evaluated in
95 * components} is empty, the returned predicate will always evaluate to {@code
99 Iterable<? extends Predicate<? super T>> components) {
100 return new AndPredicate<T>(defensiveCopy(components));
105 * components evaluates to {@code true}. The components are evaluated in
109 * components} is empty, the returned predicate will always evaluate to {@code
112 public static <T> Predicate<T> and(Predicate<? super T>... components) {
113 return new AndPredicate<T>(defensiveCopy(components));
118 * components evaluate to {@code true}. The components are evaluated in
130 * components evaluates to {@code true}. The components are evaluated in
134 * components} is empty, the returned predicate will always evaluate to {@code
138 Iterable<? extends Predicate<? super T>> components) {
139 return new OrPredicate<T>(defensiveCopy(components));
144 * components evaluates to {@code true}. The components are evaluated in
148 * components} is empty, the returned predicate will always evaluate to {@code
151 public static <T> Predicate<T> or(Predicate<? super T>... components) {
152 return new OrPredicate<T>(defensiveCopy(components));
157 * components evaluates to {@code true}. The components are evaluated in
267 private final List<? extends Predicate<? super T>> components;
269 private AndPredicate(List<? extends Predicate<? super T>> components) {
270 this.components = components;
274 for (int i = 0; i < components.size(); i++) {
275 if (!components.get(i).apply(t)) {
283 return components.hashCode() + 0x12472c2c;
288 return components.equals(that.components);
293 return "And(" + COMMA_JOINER.join(components) + ")";
300 private final List<? extends Predicate<? super T>> components;
302 private OrPredicate(List<? extends Predicate<? super T>> components) {
303 this.components = components;
307 for (int i = 0; i < components.size(); i++) {
308 if (components.get(i).apply(t)) {
316 return components.hashCode() + 0x053c91cf;
321 return components.equals(that.components);
326 return "Or(" + COMMA_JOINER.join(components) + ")";