like method
Implementation
bool like(IndexDefinition other) {
return other.isPrimary == isPrimary &&
other.isUnique == isUnique &&
other.indexName == indexName &&
other.predicate == predicate &&
other.tableSpace == tableSpace &&
other.type == type;
}