bool_t FullTextType_equals(FullTextType *self, Obj *other) { FullTextType *twin = (FullTextType*)other; if (twin == self) { return true; } if (!Obj_Is_A(other, FULLTEXTTYPE)) { return false; } if (!FType_equals((FieldType*)self, other)) { return false; } if (!!self->sortable != !!twin->sortable) { return false; } if (!!self->highlightable != !!twin->highlightable) { return false; } if (!Analyzer_Equals(self->analyzer, (Obj*)twin->analyzer)) { return false; } return true; }
bool FullTextType_Equals_IMP(FullTextType *self, Obj *other) { if ((FullTextType*)other == self) { return true; } if (!Obj_is_a(other, FULLTEXTTYPE)) { return false; } FullTextTypeIVARS *const ivars = FullTextType_IVARS(self); FullTextTypeIVARS *const ovars = FullTextType_IVARS((FullTextType*)other); FullTextType_Equals_t super_equals = (FullTextType_Equals_t)SUPER_METHOD_PTR(FULLTEXTTYPE, LUCY_FullTextType_Equals); if (!super_equals(self, other)) { return false; } if (!!ivars->sortable != !!ovars->sortable) { return false; } if (!!ivars->highlightable != !!ovars->highlightable) { return false; } if (!Analyzer_Equals(ivars->analyzer, (Obj*)ovars->analyzer)) { return false; } return true; }