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

Method Intersect

drg_group/changchun_2022/Base.java:38–50  ·  view source on GitHub ↗
(String[] a,String[] b)

Source from the content-addressed store, hash-verified

36 return false;
37 }
38 public static Set<String> Intersect(String[] a,String[] b){
39 Set<String> s=new HashSet<String>();
40 if (a!=null && a.length>0 && b!=null && b.length>0){
41 for (String x : a){
42 for(String y : b){
43 if (x.equals(y)){
44 s.add(x);
45 }
46 }
47 }
48 }
49 return s;
50 }
51 public static boolean contains(String[] arr, String targetValue){
52 if (arr!=null && arr.length>0){
53 for(String s: arr){

Callers 1

groupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected