'Tests if the input entry overlaps with another entry in this table.
Returns true if there is an overlap, false otherwise. Since the table is
sorted, there is only a need to check a certain portion of it.'

def check_for_overlapping_entry(self, in_entry):

    priority = in_entry.effective_priority
    for e in self._table:
        if (e.effective_priority < priority):
            break
        elif (e.effective_priority > priority):
            continue
        elif (e.is_matched_by(in_entry.match) or in_entry.is_matched_by(e.match)):
            return True
    return False
