Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
class
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
40
public
class
PaperScissorsRock {
Callers
nothing calls this directly
Calls
2
print
Method · 0.80
compete
Method · 0.65
Tested by
no test coverage detected