private static int getValue ( String str , boolean getMaximumValue ) { int multiplier = 1 ; String upperOrLowerValue = null ; final String [ ] rangeUnit = splitRangeUnit ( str ) ; if ( rangeUnit . length == 2 ) { multiplier = getMultiplier ( rangeUnit [ 1 ] ) ; } String [ ] range = splitRange ( rangeUnit [ 0 ] ) ; upperOrLowerValue = range [ 0 ] ; if ( range . length == 2 ) { if ( getMaximumValue ) { upperOrLowerValue = range [ 1 ] ; } } return ( int ) ( convertStringToDouble ( upperOrLowerValue ) * multiplier ) ; }
Return the specified value from the string .