
com.pivotallabs.greatexpectations.matchers.ComparableMatcher Maven / Gradle / Ivy
package com.pivotallabs.greatexpectations.matchers;
import com.pivotallabs.greatexpectations.MatcherOf;
@MatcherOf(Comparable.class)
public class ComparableMatcher> extends ObjectMatcher {
public boolean toBeGreaterThan(T t) {
return actual.compareTo(t) > 0;
}
public boolean toBeLessThan(T t) {
return actual.compareTo(t) < 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy