SingleProofreadingError[] getMatches(int numberOfParagraph, int startOfSentencePosition) {
    for (CacheEntry anEntry : entries) {
      if (anEntry.numberOfParagraph == numberOfParagraph && anEntry.startOfSentencePosition == startOfSentencePosition) {
        return anEntry.errorArray;
      }
    }
    return null;
  }
SingleProofreadingError [ ] getMatches ( int numberOfParagraph , int startOfSentencePosition ) { for ( CacheEntry anEntry : entries ) { if ( anEntry . numberOfParagraph == numberOfParagraph && anEntry . startOfSentencePosition == startOfSentencePosition ) { return anEntry . errorArray ; } } return null ; }
get Proofreading errors from cache