@Test public void testCreate() { SktUri sktUri = SktUri.create(HOST, PORT, PRESHARED_KEY, null); assertEquals(HOST, sktUri.getHost()); assertEquals(PORT, sktUri.getPort()); assertArrayEquals(PRESHARED_KEY, sktUri.getPresharedKey()); assertEquals(null, sktUri.getWifiSsid()); }
static SktUri create(String host, int port, byte[] presharedKey, @Nullable String wifiSsid) { return new AutoValue_SktUri(host, port, presharedKey, wifiSsid); }
SktUri { static SktUri create(String host, int port, byte[] presharedKey, @Nullable String wifiSsid) { return new AutoValue_SktUri(host, port, presharedKey, wifiSsid); } }
SktUri { static SktUri create(String host, int port, byte[] presharedKey, @Nullable String wifiSsid) { return new AutoValue_SktUri(host, port, presharedKey, wifiSsid); }  }
SktUri { static SktUri create(String host, int port, byte[] presharedKey, @Nullable String wifiSsid) { return new AutoValue_SktUri(host, port, presharedKey, wifiSsid); }  abstract String getHost(); abstract int getPort(); @SuppressWarnings("mutable") abstract byte[] getPresharedKey(); @Nullable abstract String getWifiSsid(); @NonNull static SktUri parse(String input); }
SktUri { static SktUri create(String host, int port, byte[] presharedKey, @Nullable String wifiSsid) { return new AutoValue_SktUri(host, port, presharedKey, wifiSsid); }  abstract String getHost(); abstract int getPort(); @SuppressWarnings("mutable") abstract byte[] getPresharedKey(); @Nullable abstract String getWifiSsid(); @NonNull static SktUri parse(String input);  }