@Test void toBuilderConsistency() { QueryResponse response = new QueryResponse("test", "test", "test", 1, 2, "test", 1234, ImmutableList.of("tuxed"), "0.0.1", ImmutableList.of(new PluginInformation("test", "1.0.0"), new PluginInformation("test2", null))); assertEquals(response, response.toBuilder().build()); }
public Builder toBuilder() { return QueryResponse.builder() .hostname(getHostname()) .gameVersion(getGameVersion()) .map(getMap()) .currentPlayers(getCurrentPlayers()) .maxPlayers(getMaxPlayers()) .proxyHost(getProxyHost()) .proxyPort(getProxyPort()) .players(getPlayers()) .proxyVersion(getProxyVersion()) .plugins(getPlugins()); }
QueryResponse { public Builder toBuilder() { return QueryResponse.builder() .hostname(getHostname()) .gameVersion(getGameVersion()) .map(getMap()) .currentPlayers(getCurrentPlayers()) .maxPlayers(getMaxPlayers()) .proxyHost(getProxyHost()) .proxyPort(getProxyPort()) .players(getPlayers()) .proxyVersion(getProxyVersion()) .plugins(getPlugins()); } }
QueryResponse { public Builder toBuilder() { return QueryResponse.builder() .hostname(getHostname()) .gameVersion(getGameVersion()) .map(getMap()) .currentPlayers(getCurrentPlayers()) .maxPlayers(getMaxPlayers()) .proxyHost(getProxyHost()) .proxyPort(getProxyPort()) .players(getPlayers()) .proxyVersion(getProxyVersion()) .plugins(getPlugins()); } @VisibleForTesting  QueryResponse(String hostname, String gameVersion, String map, int currentPlayers,
      int maxPlayers, String proxyHost, int proxyPort, ImmutableCollection<String> players,
      String proxyVersion, ImmutableCollection<PluginInformation> plugins); }
QueryResponse { public Builder toBuilder() { return QueryResponse.builder() .hostname(getHostname()) .gameVersion(getGameVersion()) .map(getMap()) .currentPlayers(getCurrentPlayers()) .maxPlayers(getMaxPlayers()) .proxyHost(getProxyHost()) .proxyPort(getProxyPort()) .players(getPlayers()) .proxyVersion(getProxyVersion()) .plugins(getPlugins()); } @VisibleForTesting  QueryResponse(String hostname, String gameVersion, String map, int currentPlayers,
      int maxPlayers, String proxyHost, int proxyPort, ImmutableCollection<String> players,
      String proxyVersion, ImmutableCollection<PluginInformation> plugins); String getHostname(); String getGameVersion(); String getMap(); int getCurrentPlayers(); int getMaxPlayers(); String getProxyHost(); int getProxyPort(); Collection<String> getPlayers(); String getProxyVersion(); Collection<PluginInformation> getPlugins(); Builder toBuilder(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
QueryResponse { public Builder toBuilder() { return QueryResponse.builder() .hostname(getHostname()) .gameVersion(getGameVersion()) .map(getMap()) .currentPlayers(getCurrentPlayers()) .maxPlayers(getMaxPlayers()) .proxyHost(getProxyHost()) .proxyPort(getProxyPort()) .players(getPlayers()) .proxyVersion(getProxyVersion()) .plugins(getPlugins()); } @VisibleForTesting  QueryResponse(String hostname, String gameVersion, String map, int currentPlayers,
      int maxPlayers, String proxyHost, int proxyPort, ImmutableCollection<String> players,
      String proxyVersion, ImmutableCollection<PluginInformation> plugins); String getHostname(); String getGameVersion(); String getMap(); int getCurrentPlayers(); int getMaxPlayers(); String getProxyHost(); int getProxyPort(); Collection<String> getPlayers(); String getProxyVersion(); Collection<PluginInformation> getPlugins(); Builder toBuilder(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }