MCPcopy Create free account
hub / github.com/MenoData/Time4J / toString

Method toString

base/src/main/java/net/time4j/DayPeriod.java:417–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415 * @return String
416 */
417 @Override
418 public String toString() {
419
420 StringBuilder sb = new StringBuilder(64);
421 sb.append("DayPeriod[");
422 if (this.isPredefined()) {
423 sb.append("locale=");
424 sb.append(this.locale);
425 sb.append(',');
426 if (!this.calendarType.equals(CalendarText.ISO_CALENDAR_TYPE)) {
427 sb.append(",calendar-type=");
428 sb.append(this.calendarType);
429 sb.append(',');
430 }
431 }
432 sb.append(this.codeMap);
433 sb.append(']');
434 return sb.toString();
435
436 }
437
438 // package-private because used in deserialization
439 static DayPeriod of(

Callers

nothing calls this directly

Calls 3

isPredefinedMethod · 0.95
toStringMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected