protected static <T> boolean matchStr(boolean ignoreCase, String str, Consumer<T> c, String s1, T t1,
			Object... others) {
		if (str == null && s1 == null || str != null && str.equals(s1)) {
			c.accept(t1);
			return true;
		} else if (others == null || others.length < 2) { // 没有匹配
			return false;
		}
		for (int i = 0; i < others.length; i += 2)
			if (str == null && others[i] == null
					|| str != null && (ignoreCase && str.equalsIgnoreCase(others[i].toString())
							|| !ignoreCase && str.equals(others[i]))) {
				c.accept(TypeCast.cast(others[i + 1]));
				return true;
			}
		return false;
	}
protected static < T > boolean matchStr ( boolean ignoreCase , String str , Consumer < T > c , String s1 , T t1 , Object ... others ) { if ( str == null && s1 == null || str != null && str . equals ( s1 ) ) { c . accept ( t1 ) ; return true ; } else if ( others == null || others . length < 2 ) { return false ; } for ( int i = 0 ; i < others . length ; i += 2 ) if ( str == null && others [ i ] == null || str != null && ( ignoreCase && str . equalsIgnoreCase ( others [ i ] . toString ( ) ) || ! ignoreCase && str . equals ( others [ i ] ) ) ) { c . accept ( TypeCast . cast ( others [ i + 1 ] ) ) ; return true ; } return false ; }
返回true表示找到匹配