@ SuppressWarnings ( "boxing" ) public static void inclusiveBetween ( final double start , final double end , final double value ) { // TODO when breaking BC, consider returning value if ( value < start || value > end ) { throw new IllegalArgumentException ( StringUtils . simpleFormat ( DEFAULT_INCLUSIVE_BETWEEN_EX_MESSAGE , value , start , end ) ) ; } }
Validate that the specified primitive value falls between the two inclusive values specified ; otherwise throws an exception .