MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toString

Method toString

Ports/CLDC11/src/java/time/Period.java:46–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 public String toString() {
47 StringBuffer sb = new StringBuffer("P");
48 if (years != 0) {
49 sb.append(years).append('Y');
50 }
51 if (months != 0) {
52 sb.append(months).append('M');
53 }
54 if (days != 0 || (years == 0 && months == 0)) {
55 sb.append(days).append('D');
56 }
57 return sb.toString();
58 }
59}

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
toStringMethod · 0.95
appendMethod · 0.65

Tested by

no test coverage detected