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. boolean f = foo.isDirectory(); if (f == bar.isDirectory()) { return 0; } return f ? 1 : -1;
boolean f = foo.isDirectory(); if (f == bar.isDirectory()) { return 0; } return f ? 1 : -1;