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

org.jtwig.plural.model.PluralOption Maven / Gradle / Ivy

There is a newer version: 5.87.0.RELEASE
Show newest version
package org.jtwig.plural.model;

import com.google.common.base.Predicate;

public class PluralOption implements Predicate {
    private final String message;
    private final Predicate include;

    public PluralOption(String message, Predicate include) {
        this.message = message;
        this.include = include;
    }

    @Override
    public boolean apply(Integer input) {
        return include.apply(input);
    }

    public String getMessage() {
        return message;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy