public static boolean overlaps ( TermOccurrence o1 , TermOccurrence o2 ) { return o1 . getSourceDocument ( ) . equals ( o2 . getSourceDocument ( ) ) && o1 . getBegin ( ) < o2 . getEnd ( ) && o2 . getBegin ( ) < o1 . getEnd ( ) ; }
True if both source documents are the same and if the offsets in the document overlaps .