Example #1
0
 /*package*/ static boolean containsFile(List<PostParameter> params) {
   boolean containsFile = false;
   for (PostParameter param : params) {
     if (param.isFile()) {
       containsFile = true;
       break;
     }
   }
   return containsFile;
 }
Example #2
0
 public static boolean containsFile(PostParameter[] params) {
   boolean containsFile = false;
   if (null == params) {
     return false;
   }
   for (PostParameter param : params) {
     if (param.isFile()) {
       containsFile = true;
       break;
     }
   }
   return containsFile;
 }