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

com.chutneytesting.design.domain.campaign.Frequency Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.chutneytesting.design.domain.campaign;

public enum Frequency {

    HOURLY("Hourly"),
    DAILY("Daily"),
    WEEKLY("Weekly"),
    MONTHLY("Monthly"),
    EMPTY("");

    public final String label;

    Frequency(String label) {
        this.label = label;
    }

    public static Frequency toFrequency(String label) {
        for (Frequency frequency : values()) {
            if (frequency.label.equals(label)) return frequency;
        }
        return EMPTY;
    }

    @Override
    public String toString() {
        return label;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy