1
0
mirror of synced 2026-10-18 12:36:11 +08:00
Files
lunar-java/src/main/java/com/nlf/calendar/ShuJiu.java

52 lines
710 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.nlf.calendar;
/**
* 数九
* @author 6tail
*/
public class ShuJiu {
/**
* 名称,如一九、二九
*/
private String name;
/**
* 当前数九第几天,1-9
*/
private int index;
public ShuJiu() {
}
public ShuJiu(String name, int index) {
this.name = name;
this.index = index;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
@Override
public String toString() {
return name;
}
public String toFullString() {
return name + "第" + index + "天";
}
}