![JAR search and dependency download from the Maven repository](/logo.png)
edu.stanford.protege.webprotege.match.NotMatcher Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.match;
import javax.annotation.Nonnull;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 7 Jun 2018
*/
public class NotMatcher implements Matcher {
@Nonnull
private final Matcher matcher;
public NotMatcher(@Nonnull Matcher matcher) {
this.matcher = checkNotNull(matcher);
}
@Override
public boolean matches(@Nonnull T value) {
return !matcher.matches(checkNotNull(value));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy