public void validate (boolean repair, Validator... validators) {
        long startValidation = System.currentTimeMillis();
        for (Validator validator : validators) {
            try {
                long startValidator = System.currentTimeMillis();
//                validator.validate(this, repair);
                long endValidator = System.currentTimeMillis();
                long diff = endValidator - startValidator;
                LOG.info("{} finished in {} milliseconds.", validator.getClass().getSimpleName(), TimeUnit.NANOSECONDS.toMillis(diff));
            } catch (Exception e) {
                LOG.error("Could not run {} validator.", validator.getClass().getSimpleName());
//                LOG.error(e.toString());
                e.printStackTrace();
            }
        }
        long endValidation = System.nanoTime();
        long total = endValidation - startValidation;
        LOG.info("{} validators completed in {} milliseconds.", validators.length, TimeUnit.NANOSECONDS.toMillis(total));
    }
public void validate (boolean repair, Validator... validators) {
        long startValidation = System.currentTimeMillis();
        for (Validator validator : validators) {
            try {
                long startValidator = System.currentTimeMillis();

                long endValidator = System.currentTimeMillis();
                long diff = endValidator - startValidator;
                LOG.info("{} finished in {} milliseconds.", validator.getClass().getSimpleName(), TimeUnit.NANOSECONDS.toMillis(diff));
            } catch (Exception e) {
                LOG.error("Could not run {} validator.", validator.getClass().getSimpleName());

                e.printStackTrace();
            }
        }
        long endValidation = System.nanoTime();
        long total = endValidation - startValidation;
        LOG.info("{} validators completed in {} milliseconds.", validators.length, TimeUnit.NANOSECONDS.toMillis(total));
    }
public void validate ( boolean repair , Validator ... validators ) { long startValidation = System . currentTimeMillis ( ) ; for ( Validator validator : validators ) { try { long startValidator = System . currentTimeMillis ( ) ; //                validator.validate(this, repair); long endValidator = System . currentTimeMillis ( ) ; long diff = endValidator - startValidator ; LOG . info ( "{} finished in {} milliseconds." , validator . getClass ( ) . getSimpleName ( ) , TimeUnit . NANOSECONDS . toMillis ( diff ) ) ; } catch ( Exception e ) { LOG . error ( "Could not run {} validator." , validator . getClass ( ) . getSimpleName ( ) ) ; //                LOG.error(e.toString()); e . printStackTrace ( ) ; } } long endValidation = System . nanoTime ( ) ; long total = endValidation - startValidation ; LOG . info ( "{} validators completed in {} milliseconds." , validators . length , TimeUnit . NANOSECONDS . toMillis ( total ) ) ; }
}
}