public ICUTransformFilterFactory(Map<String,String> args) {super(args);String id = require(args, "id");String direction = get(args, "direction", Arrays.asList("forward", "reverse"), "forward", false);int dir = "forward".equals(direction) ? Transliterator.FORWARD : Transliterator.REVERSE;transliterator = Transliterator.getInstance(id, dir);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

public ICUTransformFilterFactory(IDictionary<string, string> args): base(args){string id = Require(args, "id");string direction = Get(args, "direction", new string[] { "forward", "reverse" }, "forward", false);TransliterationDirection dir = "forward".Equals(direction, StringComparison.Ordinal) ? Transliterator.Forward : Transliterator.Reverse;transliterator = Transliterator.GetInstance(id, dir);if (args.Count != 0){throw new ArgumentException("Unknown parameters: " + args);}}
