public TruncateTokenFilterFactory(Map<String, String> args) {super(args);prefixLength = Byte.parseByte(get(args, PREFIX_LENGTH_KEY, "5"));if (prefixLength < 1)throw new IllegalArgumentException(PREFIX_LENGTH_KEY + " parameter must be a positive number: " + prefixLength);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameter(s): " + args);}}

public TruncateTokenFilterFactory(IDictionary<string, string> args): base(args){var prefixLengthString = Get(args, PREFIX_LENGTH_KEY, "5");prefixLength = sbyte.Parse(prefixLengthString, NumberStyles.Integer, CultureInfo.InvariantCulture);if (prefixLength < 1){throw new System.ArgumentException(PREFIX_LENGTH_KEY + " parameter must be a positive number: " + prefixLengthString);}if (args.Count > 0){throw new System.ArgumentException("Unknown parameter(s): " + args);}}
