MCPcopy Index your code
hub / github.com/OpenDRG/DRG_Java / Intersect

Method Intersect

drg_group/guangxi_2022/Base.java:81–93  ·  view source on GitHub ↗
(String[] a,String[] b)

Source from the content-addressed store, hash-verified

79 return false;
80 }
81 public static Set<String> Intersect(String[] a,String[] b){
82 Set<String> s=new HashSet<String>();
83 if (a!=null && a.length>0 && b!=null && b.length>0){
84 for (String x : a){
85 for(String y : b){
86 if (x.equals(y)){
87 s.add(x);
88 }
89 }
90 }
91 }
92 return s;
93 }
94 public static boolean contains(String[] arr, String targetValue){
95 if (arr!=null && arr.length>0){
96 for(String s: arr){

Callers 15

groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95
groupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected