Java Code Examples for org.apache.commons.lang3.math.NumberUtils.compare()

The following are Jave code examples for showing how to use compare() of the org.apache.commons.lang3.math.NumberUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: jspider   File: QueuePriorityScheduler.java   View Source Code Vote up 4 votes
@Override
public int compare(Request o1, Request o2) {
    return -NumberUtils.compare(o1.getPriority(), o2.getPriority());
}