我想将一些 lambda 方法作为参数传递给该方法。不是一个 lambda,而是几个 lambda。怎么做?
flines = arg -> arg.startsWith("WAW");
String fname = System.getProperty("user.home") + "/LamComFile.txt";
InputConverter<String> fileConv = new InputConverter<>(fname);
List<String> lines = fileConv.convertBy(flines);
String text = fileConv.convertBy(flines, join);
List<Integer> ints = fileConv.convertBy(flines, join, collectInts);
Integer sumints = fileConv.convertBy(flines, join, collectInts, sum);
...
千巷猫影
相关分类