public static boolean isSame( PlexusIoResource resource, File file )
    {
        if ( resource instanceof FileSupplier )
        {
            File resourceFile = ((FileSupplier) resource).getFile();
            return file.equals( resourceFile );
        }
        return false;
    }
public static boolean isSame( PlexusIoResource resource, File file )
    {
        if ( resource instanceof FileSupplier )
        {
            File resourceFile = ((FileSupplier) resource).getFile();
            return file.equals( resourceFile );
        }
        return false;
    }
public static boolean isSame ( PlexusIoResource resource , File file ) { if ( resource instanceof FileSupplier ) { File resourceFile = ( ( FileSupplier ) resource ) . getFile ( ) ; return file . equals ( resourceFile ) ; } return false ; }
Checks, whether the resource and the file are identical.
Checks whether the resource and the file are identical .