@Test public void query() throws Exception { assertFalse(new LazyUri(new Precoded("http: assertTrue(new LazyUri(new Precoded("http: assertTrue(new LazyUri(new Precoded("http: assertEquals("", new LazyUri(new Precoded("http: assertEquals("q=test", new LazyUri(new Precoded("http: }
@Override public OptionalLazyQuery query() { if (mQuery == null) { mQuery = new OptionalLazyQuery( mUriEncoded.subSequence(mOptionalScheme.parsedLength() + authority().parsedLength() + path().parsedLength(), mUriEncoded.length())); } return mQuery; }
LazyUri implements Uri { @Override public OptionalLazyQuery query() { if (mQuery == null) { mQuery = new OptionalLazyQuery( mUriEncoded.subSequence(mOptionalScheme.parsedLength() + authority().parsedLength() + path().parsedLength(), mUriEncoded.length())); } return mQuery; } }
LazyUri implements Uri { @Override public OptionalLazyQuery query() { if (mQuery == null) { mQuery = new OptionalLazyQuery( mUriEncoded.subSequence(mOptionalScheme.parsedLength() + authority().parsedLength() + path().parsedLength(), mUriEncoded.length())); } return mQuery; } LazyUri(UriEncoded uri); }
LazyUri implements Uri { @Override public OptionalLazyQuery query() { if (mQuery == null) { mQuery = new OptionalLazyQuery( mUriEncoded.subSequence(mOptionalScheme.parsedLength() + authority().parsedLength() + path().parsedLength(), mUriEncoded.length())); } return mQuery; } 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 OptionalLazyQuery query() { if (mQuery == null) { mQuery = new OptionalLazyQuery( mUriEncoded.subSequence(mOptionalScheme.parsedLength() + authority().parsedLength() + path().parsedLength(), mUriEncoded.length())); } return mQuery; } 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();  }