public static void check ( Version version , String begin , String end , String component ) { E . checkState ( VersionUtil . match ( version , begin , end ) , "The version %s of '%s' is not in [%s, %s)" , version , component , begin , end ) ; }
Check whether a component version is matched expected range throw an exception if it s not matched .