org.meeuw.json.grep.matching.PathMatchers Maven / Gradle / Ivy
package org.meeuw.json.grep.matching;
import java.util.function.Predicate;
import org.meeuw.json.Path;
/**
* @author Michiel Meeuwissen
* @since 0.6
*/
public class PathMatchers {
public static Predicate[] needsKeyCollection(PathMatcher... matchers) {
Predicate[] result = new Predicate[matchers.length];
for (int i = 0; i < matchers.length; i++) {
result[i] = matchers[i].needsKeyCollection();
}
return result;
}
public static Predicate[] needsObjectCollection(PathMatcher... matchers) {
Predicate[] result = new Predicate[matchers.length];
for (int i = 0; i < matchers.length; i++) {
result[i] = matchers[i].needsObjectCollection();
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy