MCPcopy Create free account
hub / github.com/PaperMC/Paper / getByValue

Method getByValue

paper-api/src/test/java/org/bukkit/GameModeTest.java:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7public class GameModeTest {
8 @Test
9 public void getByValue() {
10 for (GameMode gameMode : GameMode.values()) {
11 assertThat(GameMode.getByValue(gameMode.getValue()), is(gameMode));
12 }
13 }
14}

Callers

nothing calls this directly

Calls 5

getByValueMethod · 0.95
valuesMethod · 0.65
getValueMethod · 0.65
isMethod · 0.65
assertThatMethod · 0.45

Tested by

no test coverage detected