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