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

Method match

enums/RoShamBo.java:10–14  ·  view source on GitHub ↗
(T a, T b)

Source from the content-addressed store, hash-verified

8
9public class RoShamBo {
10 public static <T extends Competitor<T>>
11 void match(T a, T b) {
12 System.out.println(
13 a + " vs. " + b + ": " + a.compete(b));
14 }
15 public static <T extends Enum<T> & Competitor<T>>
16 void play(Class<T> rsbClass, int size) {
17 for(int i = 0; i < size; i++)

Callers 2

playMethod · 0.95
mainMethod · 0.45

Calls 1

competeMethod · 0.65

Tested by

no test coverage detected