org.jtwig.plural.model.limits.StaticLowerLimit Maven / Gradle / Ivy
package org.jtwig.plural.model.limits;
import com.google.common.base.Predicate;
public class StaticLowerLimit implements Predicate {
private final boolean inclusive;
private final int limit;
public StaticLowerLimit(boolean inclusive, int limit) {
this.inclusive = inclusive;
this.limit = limit;
}
@Override
public boolean apply(Integer input) {
return input > limit || inclusive && input == limit;
}
public int getLimit() {
return limit;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy