MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / readSet

Method readSet

drg_group/quanzhou_2023/Base.java:15–17  ·  view source on GitHub ↗
(String folder,String dataFile)

Source from the content-addressed store, hash-verified

13public final class Base {
14 public static Messages groupMessages=new Messages();
15 public static Set<String> readSet(String folder,String dataFile){
16 return readDataFile(folder,dataFile).map(x->x.split(" ")[0]).collect(Collectors.toSet());
17 }
18 public static Map<String,String> readDict(String folder,String dataFile,int kIndex,int vIndex){
19 return readDataFile(folder,dataFile).collect(Collectors.toMap(x->x.split(" ")[kIndex], x->x.split(" ")[vIndex]));
20 }

Callers 1

GroupProxyClass · 0.95

Calls 1

readDataFileMethod · 0.95

Tested by

no test coverage detected