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