Update Priority.java

Added Javadoc documentation to the class.