public static DiffResult doDiff(List<String> aEntryTypes,Collection<? extends DiffAdapter> aAdapters,Map<String,List<JCas>> aCasMap,int aBegin,int aEnd,LinkCompareBehavior aLinkCompareBehavior){
  sanityCheck(aCasMap);
  CasDiff2 diff=new CasDiff2(aBegin,aEnd,aAdapters,aLinkCompareBehavior);
  for (  Entry<String,List<JCas>> e : aCasMap.entrySet()) {
    int casId=0;
    for (    JCas jcas : e.getValue()) {
      for (      String type : aEntryTypes) {
        diff.addCas(e.getKey(),casId,jcas != null ? jcas.getCas() : null,type);
      }
      casId++;
    }
  }
  return new DiffResult(diff);
}

public static DiffResult doDiff ( List < String > aEntryTypes , Collection < ? extends DiffAdapter > aAdapters , Map < String , List < JCas > > aCasMap , int aBegin , int aEnd , LinkCompareBehavior aLinkCompareBehavior ) { sanityCheck ( aCasMap ) ; CasDiff2 diff = new CasDiff2 ( aBegin , aEnd , aAdapters , aLinkCompareBehavior ) ; for ( Entry < String , List < JCas > > e : aCasMap . entrySet ( ) ) { int casId = 0 ; for ( JCas jcas : e . getValue ( ) ) { for ( String type : aEntryTypes ) { diff . addCas ( e . getKey ( ) , casId , jcas != null ? jcas . getCas ( ) : null , type ) ; } casId ++ ; } } return new DiffResult ( diff ) ; }
calculate the differences between cases . this method scopes the calculation of differences to a span instead of calculating them on the whole text .
