@Test void asBuilderConsistency() { ServerPing ping = new ServerPing(new Version(404, "1.13.2"), new Players(1, 1, ImmutableList.of(new SamplePlayer("tuxed", UUID.randomUUID()))), TextComponent.of("test"), null); assertEquals(ping, ping.asBuilder().build()); }
public Builder asBuilder() { Builder builder = new Builder(); builder.version = version; if (players != null) { builder.onlinePlayers = players.online; builder.maximumPlayers = players.max; builder.samplePlayers.addAll(players.getSample()); } else { builder.nullOutPlayers = true; } builder.description = description; builder.favicon = favicon; builder.nullOutModinfo = modinfo == null; if (modinfo != null) { builder.modType = modinfo.getType(); builder.mods.addAll(modinfo.getMods()); } return builder; }
ServerPing { public Builder asBuilder() { Builder builder = new Builder(); builder.version = version; if (players != null) { builder.onlinePlayers = players.online; builder.maximumPlayers = players.max; builder.samplePlayers.addAll(players.getSample()); } else { builder.nullOutPlayers = true; } builder.description = description; builder.favicon = favicon; builder.nullOutModinfo = modinfo == null; if (modinfo != null) { builder.modType = modinfo.getType(); builder.mods.addAll(modinfo.getMods()); } return builder; } }
ServerPing { public Builder asBuilder() { Builder builder = new Builder(); builder.version = version; if (players != null) { builder.onlinePlayers = players.online; builder.maximumPlayers = players.max; builder.samplePlayers.addAll(players.getSample()); } else { builder.nullOutPlayers = true; } builder.description = description; builder.favicon = favicon; builder.nullOutModinfo = modinfo == null; if (modinfo != null) { builder.modType = modinfo.getType(); builder.mods.addAll(modinfo.getMods()); } return builder; } ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon);  ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon, @Nullable ModInfo modinfo); }
ServerPing { public Builder asBuilder() { Builder builder = new Builder(); builder.version = version; if (players != null) { builder.onlinePlayers = players.online; builder.maximumPlayers = players.max; builder.samplePlayers.addAll(players.getSample()); } else { builder.nullOutPlayers = true; } builder.description = description; builder.favicon = favicon; builder.nullOutModinfo = modinfo == null; if (modinfo != null) { builder.modType = modinfo.getType(); builder.mods.addAll(modinfo.getMods()); } return builder; } ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon);  ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon, @Nullable ModInfo modinfo); Version getVersion(); Optional<Players> getPlayers(); Component getDescription(); Optional<Favicon> getFavicon(); Optional<ModInfo> getModinfo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); Builder asBuilder(); static Builder builder(); }
ServerPing { public Builder asBuilder() { Builder builder = new Builder(); builder.version = version; if (players != null) { builder.onlinePlayers = players.online; builder.maximumPlayers = players.max; builder.samplePlayers.addAll(players.getSample()); } else { builder.nullOutPlayers = true; } builder.description = description; builder.favicon = favicon; builder.nullOutModinfo = modinfo == null; if (modinfo != null) { builder.modType = modinfo.getType(); builder.mods.addAll(modinfo.getMods()); } return builder; } ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon);  ServerPing(Version version, @Nullable Players players, Component description,
      @Nullable Favicon favicon, @Nullable ModInfo modinfo); Version getVersion(); Optional<Players> getPlayers(); Component getDescription(); Optional<Favicon> getFavicon(); Optional<ModInfo> getModinfo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); Builder asBuilder(); static Builder builder();  }