User defined priority in Priority Queue

Best Explanation for arranging elements according to user defined priority in Java defined Priority Queue