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

com.tyme.culture.Sixty Maven / Gradle / Ivy

There is a newer version: 1.1.7
Show newest version
package com.tyme.culture;

import com.tyme.LoopTyme;

/**
 * 元(60年=1元)
 *
 * @author 6tail
 */
public class Sixty extends LoopTyme {

  public static final String[] NAMES = {"上元", "中元", "下元"};

  public Sixty(int index) {
    super(NAMES, index);
  }

  public Sixty(String name) {
    super(NAMES, name);
  }

  public static Sixty fromIndex(int index) {
    return new Sixty(index);
  }

  public static Sixty fromName(String name) {
    return new Sixty(name);
  }

  public Sixty next(int n) {
    return fromIndex(nextIndex(n));
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy