@Test public void testNormalized() throws Exception { assertEquals("user@host:123", new Text(new StructuredAuthority(new Precoded("user"), new Precoded("host"), 123)).normalized().toString()); assertEquals("user%40host@host:123", new Text(new StructuredAuthority(new Precoded("%75%73%65%72%40%68%6F%73%74"), new Precoded("%68%6F%73%74"), 123)).normalized().toString()); }
@Override public UriEncoded normalized() { return this; }
Text implements UriEncoded { @Override public UriEncoded normalized() { return this; } }
Text implements UriEncoded { @Override public UriEncoded normalized() { return this; } Text(Authority delegate); }
Text implements UriEncoded { @Override public UriEncoded normalized() { return this; } Text(Authority delegate); @Override int length(); @Override char charAt(int i); @Override UriEncoded subSequence(int startIndex, int endIndex); @Override String toString(); @Override UriEncoded normalized(); @Override CharSequence decoded(String charset); @Override CharSequence decoded(); }
Text implements UriEncoded { @Override public UriEncoded normalized() { return this; } Text(Authority delegate); @Override int length(); @Override char charAt(int i); @Override UriEncoded subSequence(int startIndex, int endIndex); @Override String toString(); @Override UriEncoded normalized(); @Override CharSequence decoded(String charset); @Override CharSequence decoded();  }