public synchronized boolean needsReload ( final File file ) throws IOException { final long lastMod = file . lastModified ( ) ; if ( ! file . exists ( ) ) { mtimes . remove ( file ) ; } final Long aLong = mtimes . get ( file ) ; return null == aLong || lastMod > aLong ; }
Returns true if the file does not exist or has been modified since the last time it was loaded .