if ( that.isAbsolute() && !this.isAbsolute() ) { return false; if ( this.isAbsolute() && !that.isAbsolute() ) { expectedLen--; if ( that.isAbsolute() ) { return false;
@Override public Path toAbsolutePath() throws IOException, SecurityException { if ( isAbsolute() ) { return this; } if ( host.isEmpty() ) { return newPath( fs, FilenameUtils.normalize( defaultDirectory() + toString(), !usesWindowsFormat ), host, isRealPath, true ); } return newPath( fs, defaultDirectory() + toString( false ), host, isRealPath, true ); }
@Override public URI toUri() throws IOException, SecurityException { if ( !isAbsolute() ) { return toAbsolutePath().toUri(); } if ( fs.provider().isDefault() && !isRealPath ) { try { return new URI( "default", host, toURIString(), null ); } catch ( URISyntaxException e ) { return null; } } try { return new URI( fs.provider().getScheme(), host, toURIString(), null ); } catch ( URISyntaxException e ) { return null; } }
if ( isAbsolute() != other.isAbsolute() ) { throw new IllegalArgumentException(); if ( isAbsolute() && !this.getRoot().equals( other.getRoot() ) ) { throw new IllegalArgumentException();