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

org.jtwig.plural.model.limits.StaticLowerLimit Maven / Gradle / Ivy

There is a newer version: 5.87.0.RELEASE
Show newest version
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