public boolean validate(File file){
  if (file != null) {
    if (file.lastModified() != this.lastModified) {
      return false;
    }
    if (file.length() != this.length) {
      return false;
    }
  }
  hit++;
  return true;
}

public boolean validate ( File file ) { if ( file != null ) { if ( file . lastModified ( ) != this . lastModified ) { return false ; } if ( file . length ( ) != this . length ) { return false ; } } hit ++ ; return true ; }
checks the passed file attributes against those cached ones .
