I was debugging my code to see why a certain "low-priority" rule was taken instead of a high-priority one and found that route prioritization (in RouterNanoHTTPD) uses PriorityQueue, which, according to the JavaDoc, does not return the elements in any particular order.
I was debugging my code to see why a certain "low-priority" rule was taken instead of a high-priority one and found that route prioritization (in RouterNanoHTTPD) uses PriorityQueue, which, according to the JavaDoc, does not return the elements in any particular order.