/** * Compares by priority, with higher priorities collating first. */ @Override public int compareTo(IManagedContext<DomainClass> o) { int pri1 = o.getPriority(); int pri2 = getPriority(); return this == o ? 0 : pri1 < pri2 ? -1 : 1; }
/** * Compares by priority, with higher priorities collating first. */ @Override public int compareTo(IManagedContext o) { int pri1 = o.getPriority(); int pri2 = getPriority(); return this == o ? 0 : pri1 < pri2 ? -1 : 1; }