Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ newItem
Method
newItem
patterns/PaperScissorsRock.java:25–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
private
static
SplittableRandom rand =
24
new
SplittableRandom(47);
25
public
static
Item newItem() {
26
return
items.get(rand.nextInt(SZ)).get();
27
}
28
public
static
Tuple2<Item,Item> newPair() {
29
return
tuple(newItem(), newItem());
30
}
Callers
1
newPair
Method · 0.95
Calls
1
get
Method · 0.65
Tested by
no test coverage detected