/** Returns true if two schemas are equal ignoring field names and descriptions. */ public boolean typesEqual(Schema other) { if (uuid != null && other.uuid != null && Objects.equals(uuid, other.uuid)) { return true; } if (getFieldCount() != other.getFieldCount()) { return false; } if (!Objects.equals(fieldIndices.values(), other.fieldIndices.values())) { return false; } for (int i = 0; i < getFieldCount(); ++i) { if (!getField(i).typesEqual(other.getField(i))) { return false; } } return true; }