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

net.redhogs.cronparser.builder.DayOfMonthDescriptionBuilder Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
package net.redhogs.cronparser.builder;


/**
 * @author grhodes
 * @since 10 Dec 2012 14:24:08
 */
public class DayOfMonthDescriptionBuilder extends AbstractDescriptionBuilder {

    @Override
    protected String getSingleItemDescription(String expression) {
        return expression;
    }

    @Override
    protected String getIntervalDescriptionFormat(String expression) {
        return ", every {0} " + plural(expression, "day", "days");
    }

    @Override
    protected String getBetweenDescriptionFormat(String expression) {
        return ", between day {0} and {1} of the month";
    }

    @Override
    protected String getDescriptionFormat(String expression) {
        return ", on day {0} of the month";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy