package com.caotc.util.excel;

import java.util.Collection;

import com.caotc.util.excel.matcher.Matcher;

public class MatcherUtil {
	public static boolean allSupport(Collection<? extends Matcher> matchers,Object value) {
		return matchers.stream().allMatch(matcher->matcher.support(value));
	}
	
	public static boolean allMatches(Collection<? extends Matcher> matchers,Object value) {
		return matchers.stream().allMatch(matcher->matcher.matches(value));
	}
	
	public static boolean anyMatches(Collection<? extends Matcher> matchers,Object value) {
		return matchers.stream().anyMatch(matcher->matcher.matches(value));
	}
}

@@ -493,20 +493,17 @@
 boolean 
-anyM
+m
 atches(C
@@ -504,32 +504,43 @@
 ches(Collection%3C
+Collection%3C
 ? extends Matche
@@ -533,32 +533,33 @@
 extends Matcher%3E
+%3E
  matchers,Object
@@ -612,34 +612,39 @@
 (matcher
+ 
 -%3E
-m
+ allM
 atche
-r.
+s(
 matche
-s(
+r,
 value));

删除anyMatches方法，增加双重集合入参的matches方法