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

Class StaticIDField

concurrent/StaticIDField.java:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4// Visit http://OnJava8.com for more book information.
5
6public class StaticIDField implements HasID {
7 private static int counter = 0;
8 private int id = counter++;
9 @Override public int getID() { return id; }
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected