com.chutneytesting.campaign.domain.Frequency Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
package com.chutneytesting.campaign.domain;
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