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

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

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

import com.tyme.LoopTyme;

/**
 * 旬
 *
 * @author 6tail
 */
public class Ten extends LoopTyme {

  public static final String[] NAMES = {"甲子", "甲戌", "甲申", "甲午", "甲辰", "甲寅"};

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy