@Test public void isEmpty() throws Exception { assertTrue(new Extended(EmptyPath.INSTANCE, EmptyPath.INSTANCE).isEmpty()); assertFalse(new Extended(EmptyPath.INSTANCE, new EncodedPath(new Precoded("abc/def"))).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("abc/def")), EmptyPath.INSTANCE).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("abc/def")), new EncodedPath(new Precoded("123"))).isEmpty()); assertFalse(new Extended(EmptyPath.INSTANCE, new EncodedPath(new Precoded("/abc"))).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("/abc")), EmptyPath.INSTANCE).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("/abc")), new EncodedPath(new Precoded("/def"))).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("abc")), new EncodedPath(new Precoded("/def"))).isEmpty()); assertFalse(new Extended(new EncodedPath(new Precoded("/abc")), new EncodedPath(new Precoded("def"))).isEmpty()); }
@Override public boolean isEmpty() { return mDelegate.isEmpty() && !mNewSegments.iterator().hasNext(); }
Extended implements Path { @Override public boolean isEmpty() { return mDelegate.isEmpty() && !mNewSegments.iterator().hasNext(); } }
Extended implements Path { @Override public boolean isEmpty() { return mDelegate.isEmpty() && !mNewSegments.iterator().hasNext(); } Extended(Path delegate, UriEncoded... newSegments);  Extended(Path delegate, Path newSegments); private  Extended(Path delegate, Iterable<UriEncoded> newSegments); }
Extended implements Path { @Override public boolean isEmpty() { return mDelegate.isEmpty() && !mNewSegments.iterator().hasNext(); } Extended(Path delegate, UriEncoded... newSegments);  Extended(Path delegate, Path newSegments); private  Extended(Path delegate, Iterable<UriEncoded> newSegments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator(); }
Extended implements Path { @Override public boolean isEmpty() { return mDelegate.isEmpty() && !mNewSegments.iterator().hasNext(); } Extended(Path delegate, UriEncoded... newSegments);  Extended(Path delegate, Path newSegments); private  Extended(Path delegate, Iterable<UriEncoded> newSegments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator();  }