Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*     */ package org.apache.commons.collections.functors;
 /*     */ 
 /*     */ import java.io.Serializable;
 /*     */ import java.util.Collection;
 /*     */ 
 /*     */ public final class AllPredicate
 /*     */   implements PredicatePredicateDecoratorSerializable
 /*     */ {
/*     */   static final long serialVersionUID = -3094696765038308799L;
/*     */   private final Predicate[] iPredicates;
/*     */ 
/*     */   public static Predicate getInstance(Predicate[] predicates)
/*     */   {
/*  49 */     FunctorUtils.validateMin2(predicates);
/*  50 */     predicates = FunctorUtils.copy(predicates);
/*  51 */     return new AllPredicate(predicates);
/*     */   }
/*     */ 
/*     */   public static Predicate getInstance(Collection predicates)
/*     */   {
/*  64 */     Predicate[] preds = FunctorUtils.validate(predicates);
/*  65 */     return new AllPredicate(preds);
/*     */   }
/*     */ 
/*     */   public AllPredicate(Predicate[] predicates)
/*     */   {
/*  76 */     this. = predicates;
/*     */   }
/*     */ 
/*     */   public boolean evaluate(Object object)
/*     */   {
/*  86 */     for (int i = 0; i < this..lengthi++) {
/*  87 */       if (!this.[i].evaluate(object)) {
/*  88 */         return false;
/*     */       }
/*     */     }
/*  91 */     return true;
/*     */   }
/*     */ 
/*     */   public Predicate[] getPredicates()
/*     */   {
/* 101 */     return this.;
/*     */   }
/*     */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.commons.collections.functors.AllPredicate
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X