com.noenv.wiremongo.matching.Matcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-wiremongo Show documentation
Show all versions of vertx-wiremongo Show documentation
Lightweight mongo mocking for Vert.x
package com.noenv.wiremongo.matching;
import io.vertx.core.json.JsonObject;
import java.util.function.Function;
@FunctionalInterface
public interface Matcher {
boolean matches(T o);
static Matcher create(JsonObject match) {
return create(match, i -> (T)i, i -> i);
}
static Matcher create(JsonObject match, Function