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

com.jquicker.timer.TimerEnum Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.jquicker.timer;


/**
 * 字符串工具类
 * 
 * @author OL
 */
public final class TimerEnum {

	public enum Cron {
		Seconds(0), Minutes(1), Hours(2), DayofMonth(3), Month(4), DayofWeek(5), Year(6);
		
		public final int value;

		Cron(int value) {
			this.value = value;
		}

		public int getValue() {
			return this.value;
		}

		public static String getName(int value) {
			String name = null;
			for (Cron key : Cron.values()) {
				if (key.value == value) {
					name = key.name();
					break;
				}
			}
			return name;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy