public static ArgumentValidator inRange(int expectedMin, int expectedMax) {
        return inRange(expectedMin, expectedMax, MessageFormat.format("{0}..{1}",expectedMin, expectedMax));
    }
public static ArgumentValidator inRange ( int expectedMin , int expectedMax ) { return inRange ( expectedMin , expectedMax , MessageFormat . format ( "{0}..{1}" , expectedMin , expectedMax ) ) ; }
Creates a {@link ArgumentValidator} which checks for _expectedMin <= #arguments <= expectedMax_.

@param expectedMin the minimum number of expected arguments
@param expectedMax the maximum number of expected arguments
@return an ArgumentValidator