@Test public void value() throws Exception { assertEquals("http", new OptionalLazyScheme(new Precoded("http: assertEquals("http", new OptionalLazyScheme(new Precoded("http: assertEquals("mailto", new OptionalLazyScheme(new Precoded("mailto:test@exampe.com")).value().toString()); assertEquals("example.com", new OptionalLazyScheme(new Precoded("example.com:123")).value().toString()); }
@Override public Scheme value(Scheme defaultValue) { return scheme().value(defaultValue); }
OptionalLazyScheme implements Optional<Scheme>, Parsed { @Override public Scheme value(Scheme defaultValue) { return scheme().value(defaultValue); } }
OptionalLazyScheme implements Optional<Scheme>, Parsed { @Override public Scheme value(Scheme defaultValue) { return scheme().value(defaultValue); } OptionalLazyScheme(UriEncoded uriEncoded); }
OptionalLazyScheme implements Optional<Scheme>, Parsed { @Override public Scheme value(Scheme defaultValue) { return scheme().value(defaultValue); } OptionalLazyScheme(UriEncoded uriEncoded); @Override boolean isPresent(); @Override Scheme value(Scheme defaultValue); @Override Scheme value(); @Override int parsedLength(); }
OptionalLazyScheme implements Optional<Scheme>, Parsed { @Override public Scheme value(Scheme defaultValue) { return scheme().value(defaultValue); } OptionalLazyScheme(UriEncoded uriEncoded); @Override boolean isPresent(); @Override Scheme value(Scheme defaultValue); @Override Scheme value(); @Override int parsedLength();  }