public static SimpleFormatter compileMinMaxArguments ( CharSequence pattern , int min , int max ) { StringBuilder sb = new StringBuilder ( ) ; String compiledPattern = SimpleFormatterImpl . compileToStringMinMaxArguments ( pattern , sb , min , max ) ; return new SimpleFormatter ( compiledPattern ) ; }
Creates a formatter from the pattern string . The number of arguments checked against the given limits is the highest argument number plus one not the number of occurrences of arguments .