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

Method toFullString

src/main/java/com/nlf/calendar/Lunar.java:2480–2565  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2478 }
2479
2480 public String toFullString() {
2481 StringBuilder s = new StringBuilder();
2482 s.append(this);
2483 s.append(" ");
2484 s.append(getYearInGanZhi());
2485 s.append("(");
2486 s.append(getYearShengXiao());
2487 s.append(")年 ");
2488 s.append(getMonthInGanZhi());
2489 s.append("(");
2490 s.append(getMonthShengXiao());
2491 s.append(")月 ");
2492 s.append(getDayInGanZhi());
2493 s.append("(");
2494 s.append(getDayShengXiao());
2495 s.append(")日 ");
2496 s.append(getTimeZhi());
2497 s.append("(");
2498 s.append(getTimeShengXiao());
2499 s.append(")时 纳音[");
2500 s.append(getYearNaYin());
2501 s.append(" ");
2502 s.append(getMonthNaYin());
2503 s.append(" ");
2504 s.append(getDayNaYin());
2505 s.append(" ");
2506 s.append(getTimeNaYin());
2507 s.append("] 星期");
2508 s.append(getWeekInChinese());
2509 for (String f : getFestivals()) {
2510 s.append(" (");
2511 s.append(f);
2512 s.append(")");
2513 }
2514 for (String f : getOtherFestivals()) {
2515 s.append(" (");
2516 s.append(f);
2517 s.append(")");
2518 }
2519 String jq = getJieQi();
2520 if (jq.length() > 0) {
2521 s.append(" [");
2522 s.append(jq);
2523 s.append("]");
2524 }
2525 s.append(" ");
2526 s.append(getGong());
2527 s.append("方");
2528 s.append(getShou());
2529 s.append(" 星宿[");
2530 s.append(getXiu());
2531 s.append(getZheng());
2532 s.append(getAnimal());
2533 s.append("](");
2534 s.append(getXiuLuck());
2535 s.append(") 彭祖百忌[");
2536 s.append(getPengZuGan());
2537 s.append(" ");

Callers 4

testMethod · 0.95
test2Method · 0.95
test3Method · 0.95
testMethod · 0.95

Calls 15

getYearInGanZhiMethod · 0.95
getYearShengXiaoMethod · 0.95
getMonthInGanZhiMethod · 0.95
getMonthShengXiaoMethod · 0.95
getDayInGanZhiMethod · 0.95
getDayShengXiaoMethod · 0.95
getTimeZhiMethod · 0.95
getTimeShengXiaoMethod · 0.95
getYearNaYinMethod · 0.95
getMonthNaYinMethod · 0.95
getDayNaYinMethod · 0.95
getTimeNaYinMethod · 0.95

Tested by 4

testMethod · 0.76
test2Method · 0.76
test3Method · 0.76
testMethod · 0.76