@Test public void scheme() throws Exception { assertEquals("http", new LazyUri(new Precoded("http: assertEquals("http", new LazyUri(new Precoded("http: assertEquals("http", new LazyUri(new Precoded("http: assertEquals("http", new LazyUri(new Precoded("http: assertEquals("urn", new LazyUri(new Precoded("urn:isbn:3827370191")).scheme().value().toString()); assertEquals("file", new LazyUri(new Precoded("file: assertEquals("mailto", new LazyUri(new Precoded("mailto:test@example.com")).scheme().value().toString()); assertFalse(new LazyUri(new Precoded(" assertFalse(new LazyUri(new Precoded("/absolute/path")).scheme().isPresent()); assertFalse(new LazyUri(new Precoded("relative/path")).scheme().isPresent()); assertFalse(new LazyUri(new Precoded("?q=:query:")).scheme().isPresent()); }
@Override public Optional<? extends Scheme> scheme() { return mOptionalScheme; }
LazyUri implements Uri { @Override public Optional<? extends Scheme> scheme() { return mOptionalScheme; } }
LazyUri implements Uri { @Override public Optional<? extends Scheme> scheme() { return mOptionalScheme; } LazyUri(UriEncoded uri); }
LazyUri implements Uri { @Override public Optional<? extends Scheme> scheme() { return mOptionalScheme; } LazyUri(UriEncoded uri); @Override Optional<? extends Scheme> scheme(); @Override OptionalLazyAuthority authority(); @Override LazyPath path(); @Override OptionalLazyQuery query(); @Override Optional<? extends Fragment> fragment(); @Override boolean isHierarchical(); @Override boolean isAbsolute(); }
LazyUri implements Uri { @Override public Optional<? extends Scheme> scheme() { return mOptionalScheme; } LazyUri(UriEncoded uri); @Override Optional<? extends Scheme> scheme(); @Override OptionalLazyAuthority authority(); @Override LazyPath path(); @Override OptionalLazyQuery query(); @Override Optional<? extends Fragment> fragment(); @Override boolean isHierarchical(); @Override boolean isAbsolute();  }