public boolean isPrefixOf ( Path path ) { if ( this . getLength ( ) > path . getLength ( ) ) { return false ; } for ( int i = 0 ; i < getLength ( ) ; i ++ ) { if ( this . getBlockIdAt ( i ) != path . getBlockIdAt ( i ) ) { return false ; } } return true ; }
Determine whether or not given Path is a prefix of this one .