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

com.tyme.culture.plumrain.PlumRain Maven / Gradle / Ivy

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

import com.tyme.LoopTyme;

/**
 * 梅雨
 *
 * @author 6tail
 */
public class PlumRain extends LoopTyme {

  public static final String[] NAMES = {"入梅", "出梅"};

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

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

  /**
   * 从名称初始化
   *
   * @param name 名称
   * @return 梅雨
   */
  public static PlumRain fromName(String name) {
    return new PlumRain(name);
  }

  /**
   * 从索引初始化
   *
   * @param index 索引
   * @return 梅雨
   */
  public static PlumRain fromIndex(int index) {
    return new PlumRain(index);
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy