public class LunisolarYear extends Object implements Comparable<LunisolarYear>, Serializable
修飾子とタイプ | メソッドと説明 |
---|---|
int |
compareTo(LunisolarYear y)
年の比較。
|
boolean |
equals(Object o)
年の比較。
|
int |
getLastDay(int mm,
boolean leap_f)
月の最終日(晦日 つごもり)を返します。
|
int |
getLeapMonth()
閏月の月を返します。
|
LSCD |
getLSCD(AJD dd)
旧暦の日付を取得。
|
LSCD |
getLSCD(int mm,
boolean leap_f,
int dd)
旧暦の日付を取得。
|
LSCD |
getLSCD(int mm,
boolean leap_f,
int dd,
int hh,
int mi,
int ss)
旧暦の日付を取得。
|
static LunisolarYear |
getLunisolarYear(AJD hint)
旧暦の年の取得。
|
static LunisolarYear |
getLunisolarYear(int year)
旧暦の年を取得。
|
static LunisolarYear |
getLunisolarYear(int year,
ZoneId zone)
旧暦の年を取得。
|
static LunisolarYear |
getLunisolarYear(Year year)
旧暦の年を取得。
|
int |
getMonthCount()
月の総数を返します。
|
static AJD |
getNewYear(Year yyyy)
旧正月(春節)の取得。
|
int |
getYear()
旧暦の年を返します。
|
int |
hashCode()
ハッシュコード。
|
String |
toString()
年を表す数字を返します。
|
public static LunisolarYear getLunisolarYear(AJD hint)
hint
- この日付が含まれる年を返す。public static LunisolarYear getLunisolarYear(Year year)
year
- 年。public static LunisolarYear getLunisolarYear(int year) throws AJDException
year
- 年。0は指定できません。AJDException
- 不正な年。public static LunisolarYear getLunisolarYear(int year, ZoneId zone) throws AJDException
year
- 年。0は指定できません。zone
- タイムゾーン。AJDException
- 不正な年。public int getYear()
public LSCD getLSCD(AJD dd)
dd
- 検索対象。時間も引き継ぎます。public int getMonthCount()
public int getLeapMonth()
public int getLastDay(int mm, boolean leap_f) throws AJDException
mm
- 月。1~12。leap_f
- true:閏月、false:平月。AJDException
- 不正な月。public LSCD getLSCD(int mm, boolean leap_f, int dd) throws AJDException
mm
- 月。1~12。leap_f
- true:閏月、false:平月。dd
- 日。AJDException
- 不正な月日。public LSCD getLSCD(int mm, boolean leap_f, int dd, int hh, int mi, int ss) throws AJDException
mm
- 月。1~12。leap_f
- true:閏月、false:平月。dd
- 日。hh
- 時。mi
- 分。ss
- 秒。AJDException
- 不正な月日。public static AJD getNewYear(Year yyyy)
yyyy
- 新暦の年。public int compareTo(LunisolarYear y)
compareTo
インタフェース内 Comparable<LunisolarYear>
y
- 年。