
com.github.dakusui.crest.matcherbuilders.AsComparable Maven / Gradle / Ivy
package com.github.dakusui.crest.matcherbuilders;
import com.github.dakusui.faultsource.printable.Predicates;
import java.util.function.Function;
public class AsComparable,
SELF extends AsComparable> extends ObjectMatcherBuilder {
public AsComparable(Function super IN, ? extends OF_TYPE> function) {
super(function);
}
@SuppressWarnings("unchecked")
public S gt(OF_TYPE value) {
return (S) this.check(Predicates.gt(value));
}
@SuppressWarnings("unchecked")
public S ge(OF_TYPE value) {
return (S) this.check(Predicates.ge(value));
}
@SuppressWarnings("unchecked")
public S lt(OF_TYPE value) {
return (S) this.check(Predicates.lt(value));
}
@SuppressWarnings("unchecked")
public S le(OF_TYPE value) {
return (S) this.check(Predicates.le(value));
}
@SuppressWarnings("unchecked")
public S eq(OF_TYPE value) {
return (S) this.check(Predicates.eq(value));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy