public static int toIntPriority ( String strPriority ) { strPriority = strPriority . trim ( ) . toLowerCase ( ) ; if ( "low" . equals ( strPriority ) ) return Thread . MIN_PRIORITY ; if ( "min" . equals ( strPriority ) ) return Thread . MIN_PRIORITY ; if ( "high" . equals ( strPriority ) ) return Thread . MAX_PRIORITY ; if ( "max" . equals ( strPriority ) ) return Thread . MAX_PRIORITY ; if ( "normal" . equals ( strPriority ) ) return Thread . NORM_PRIORITY ; if ( "norm" . equals ( strPriority ) ) return Thread . NORM_PRIORITY ; return - 1 ; }
return priority as a int representation