fixed containsAll (#76)

This commit is contained in:
wli75
2017-03-07 20:09:18 +05:30
committed by Shekhar Gulati
parent 61ca9fc984
commit 605eb4f2a5
+1 -1
View File
@@ -175,7 +175,7 @@ public abstract class Strman {
*/
public static boolean containsAll(final String value, final String[] needles) {
validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
return Arrays.stream(needles).allMatch(needle -> contains(value, needle, true));
return Arrays.stream(needles).allMatch(needle -> contains(value, needle, false));
}
/**