MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / toString

Method toString

generics/Shape.java:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 private static long counter = 0;
8 private final long id = counter++;
9 @Override public String toString() {
10 return getClass().getSimpleName() + " " + id;
11 }
12 public void rotate() {
13 System.out.println(this + " rotate");
14 }

Callers 3

mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainMethod · 0.36