Jfg 780 test summary in pdf via dbservice

Why Integer? 

public int compare(final E1ScenarioReportData result1, final E1ScenarioReportData result2) {
            return Long.getLong(result1.getNumber()).compareTo(Long.getLong(result2.getNumber())); 
}

Maybe it's better?
Maybe this is better way?