private int indexOf(String fullPath){
  for (int i=0, length=this.relativePaths.length; i < length; i++) {
    String currentRelativePath=this.relativePaths[i];
    if (currentRelativePath == null)     continue;
    String currentContainerPath=this.containerPaths[i];
    String currentFullPath=currentRelativePath.length() == 0 ? currentContainerPath : (currentContainerPath + '/' + currentRelativePath);
    if (encloses(currentFullPath,fullPath,i))     return i;
  }
  return -1;
}

private int indexOf ( String fullPath ) { for ( int i = 0 , length = this . relativePaths . length ; i < length ; i ++ ) { String currentRelativePath = this . relativePaths [ i ] ; if ( currentRelativePath == null ) continue ; String currentContainerPath = this . containerPaths [ i ] ; String currentFullPath = currentRelativePath . length ( ) == 0 ? currentContainerPath : ( currentContainerPath + '/' + currentRelativePath ) ; if ( encloses ( currentFullPath , fullPath , i ) ) return i ; } return - 1 ; }
returns paths list index of given path or - 1 if not found . note : use indexof ( string , string ) for path inside jars
