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

Method value

onjava/CountMap.java:16–20  ·  view source on GitHub ↗
(int key)

Source from the content-addressed store, hash-verified

14 private static char[] chars =
15 "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
16 private static String value(int key) {
17 return
18 chars[key % chars.length] +
19 Integer.toString(key / chars.length);
20 }
21 public CountMap(int size) {
22 this.size = size < 0 ? 0 : size;
23 }

Callers 1

getMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected