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