private boolean containsCertChain(List<ArrayList<String>> certChainsNew,ArrayList<String> certFingerprints){
  boolean hasCertChain=false;
  for (  ArrayList<String> chain : certChainsNew) {
    if (chain.size() == certFingerprints.size() && chain.containsAll(certFingerprints)) {
      hasCertChain=true;
      break;
    }
  }
  return hasCertChain;
}

private boolean containsCertChain ( List < ArrayList < String > > certChainsNew , ArrayList < String > certFingerprints ) { boolean hasCertChain = false ; for ( ArrayList < String > chain : certChainsNew ) { if ( chain . size ( ) == certFingerprints . size ( ) && chain . containsAll ( certFingerprints ) ) { hasCertChain = true ; break ; } } return hasCertChain ; }
compares the given certchain fingerprint with the collection of cert chains .
