Compare two Resources.paramfoo the first Resource.parambar the second Resource.returna negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. return foo.getName().compareTo(bar.getName());
return foo.getName().compareTo(bar.getName());