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

com.rookie.common.constant.Month Maven / Gradle / Ivy

package com.rookie.common.constant;

/**
 * @author hanhan
 * @version 1.0
 */
public enum Month {
    /**
     * 月份
     */
    Jan("January", 1),
    Feb("February", 2),
    Mar("March", 3),
    Apr("April", 4),
    May("May", 5),
    Jun("June", 6),
    Jul("July", 7),
    Aug("August", 8),
    Sep("September", 9),
    Oct("October", 10),
    Nov("November", 11),
    Dec("December", 12);

    private String name;
    private int index;

    private Month(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public int getIndex() {
        return index;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy