public boolean lessThan(RegisterPriority other){
  return ordinal() < other.ordinal();
}

public boolean lessThan ( RegisterPriority other ) { return ordinal ( ) < other . ordinal ( ) ; }
determines if this priority is lower than a given priority .
