MCPcopy Create free account
hub / github.com/6tail/lunar-java / getCurrentQi

Method getCurrentQi

src/main/java/com/nlf/calendar/Lunar.java:2469–2478  ·  view source on GitHub ↗

获取当天气令对象,如果无气令,返回null @return 节气对象

()

Source from the content-addressed store, hash-verified

2467 * @return 节气对象
2468 */
2469 public JieQi getCurrentQi() {
2470 for (int i = 1, j = JIE_QI_IN_USE.length; i < j; i += 2) {
2471 String key = JIE_QI_IN_USE[i];
2472 Solar d = jieQi.get(key);
2473 if (d.getYear() == solar.getYear() && d.getMonth() == solar.getMonth() && d.getDay() == solar.getDay()) {
2474 return new JieQi(convertJieQi(key), d);
2475 }
2476 }
2477 return null;
2478 }
2479
2480 public String toFullString() {
2481 StringBuilder s = new StringBuilder();

Callers 1

testMethod · 0.95

Calls 7

getYearMethod · 0.95
getMonthMethod · 0.95
getDayMethod · 0.95
convertJieQiMethod · 0.95
getYearMethod · 0.45
getMonthMethod · 0.45
getDayMethod · 0.45

Tested by 1

testMethod · 0.76