MCPcopy Create free account
hub / github.com/Card-Forge/forge / one

Method one

forge-gui/src/main/java/forge/gui/util/SGuiChoose.java:51–53  ·  view source on GitHub ↗
(final String message, final Collection<T> choices)

Source from the content-addressed store, hash-verified

49 }
50
51 public static <T> T one(final String message, final Collection<T> choices) {
52 return one(message, choices, null, null);
53 }
54
55 public static <T> T one(final String message, final Collection<T> choices, T selected, FSerializableFunction<T, String> display) {
56 if (choices == null || choices.isEmpty()) {

Callers 15

openMethod · 0.95
passPacksMethod · 0.95
chooseColorMethod · 0.95
removeWithAnyMethod · 0.95
revealWithBanneretMethod · 0.95
revealWithVanguardMethod · 0.95
revealWithSmugglerMethod · 0.95
handleSpirePhantasmMethod · 0.95

Calls 6

getChoicesMethod · 0.95
ofMethod · 0.80
isEmptyMethod · 0.65
sizeMethod · 0.65
getFirstMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected