MCPcopy Create free account
hub / github.com/ReadyTalk/avian / table

Method table

test/Switch.java:2–23  ·  view source on GitHub ↗
(int k)

Source from the content-addressed store, hash-verified

1public class Switch {
2 private static int table(int k) {
3 switch (k) {
4 case 0:
5 return 0;
6 case 1:
7 return 1;
8 case 2:
9 return 2;
10 case 9:
11 return 9;
12 case 10:
13 return 10;
14 case 11:
15 return 11;
16 case 12:
17 return 8;
18 case -5:
19 return 5;
20 default:
21 return 7;
22 }
23 }
24
25 private static int lookup(int k) {
26 switch (k) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected