We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
router1.compareTo(router2); and router2.compareTo(router1);
should always give the same order.
The text was updated successfully, but these errors were encountered:
compareTo in Router interface
@Override default int compareTo(Router o) { if (o == null) { throw new IllegalArgumentException(); } if (this.getPriority() == o.getPriority()) { if (o.getUrl() == null) { return 1; } if (getUrl() == null) { return -1; } return getUrl().toFullString().compareTo(o.getUrl().toFullString()); } else { return getPriority() > o.getPriority() ? 1 : -1; } }
compareTo in ScriptRouter
@Override public int compareTo(Router o) { if (o == null || o.getClass() != ScriptRouter.class) { return 1; } ScriptRouter c = (ScriptRouter) o; return this.priority == c.priority ? rule.compareTo(c.rule) : (this.priority > c.priority ? 1 : -1); }
Sorry, something went wrong.
I will fix this.
No branches or pull requests
router1.compareTo(router2);
and
router2.compareTo(router1);
should always give the same order.
The text was updated successfully, but these errors were encountered: