MCPcopy Create free account
hub / github.com/BruceEckel/OnJava8-Examples / match

Method match

patterns/PaperScissorsRock.java:34–37  ·  view source on GitHub ↗
(Tuple2<Item,Item> p)

Source from the content-addressed store, hash-verified

32
33class Compete {
34 public static Outcome match(Tuple2<Item,Item> p) {
35 System.out.print(p.a1 + " -> " + p.a2 + " : ");
36 return p.a1.compete(p.a2);
37 }
38}
39
40public class PaperScissorsRock {

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
competeMethod · 0.65

Tested by

no test coverage detected