private static ArrayList<IVCombination> findIVIntersection(IVScanResult poke1,IVScanResult poke2){
  ArrayList<IVCombination> intersection=new ArrayList<>();
  if (poke1 != null && poke2 != null) {
    ArrayList<IVCombination> p1IVs=poke1.iVCombinations;
    ArrayList<IVCombination> p2IVs=poke2.iVCombinations;
    for (    IVCombination p1IV : p1IVs) {
      for (      IVCombination p2IV : p2IVs) {
        if (p1IV.equals(p2IV)) {
          intersection.add(p1IV);
        }
      }
    }
  }
  return intersection;
}

private static ArrayList < IVCombination > findIVIntersection ( IVScanResult poke1 , IVScanResult poke2 ) { ArrayList < IVCombination > intersection = new ArrayList < > ( ) ; if ( poke1 != null && poke2 != null ) { ArrayList < IVCombination > p1IVs = poke1 . iVCombinations ; ArrayList < IVCombination > p2IVs = poke2 . iVCombinations ; for ( IVCombination p1IV : p1IVs ) { for ( IVCombination p2IV : p2IVs ) { if ( p1IV . equals ( p2IV ) ) { intersection . add ( p1IV ) ; } } } } return intersection ; }
compares two pokemon scan results , and returns a list of which ivs the scans have in commomn useful when you power up a pokemon , and wanna see which combinations you can trash
