'Compare two index states.'

def __eq__(self, other):

    if (not isinstance(other, IndexState)):
        return NotImplemented
    return ((self.definition == other.definition) and (self.state == other.state) and (self.id == other.id))
