All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pivotallabs.greatexpectations.matchers.ComparableMatcher Maven / Gradle / Ivy

The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy