(Object o)
| 116 | } |
| 117 | |
| 118 | @Override |
| 119 | public boolean equals(Object o) { |
| 120 | if (this == o) return true; |
| 121 | if (!(o instanceof TableInfo)) return false; |
| 122 | |
| 123 | TableInfo tableInfo = (TableInfo) o; |
| 124 | |
| 125 | if (name != null ? !name.equals(tableInfo.name) : tableInfo.name != null) return false; |
| 126 | if (columns != null ? !columns.equals(tableInfo.columns) : tableInfo.columns != null) { |
| 127 | return false; |
| 128 | } |
| 129 | if (foreignKeys != null ? !foreignKeys.equals(tableInfo.foreignKeys) |
| 130 | : tableInfo.foreignKeys != null) { |
| 131 | return false; |
| 132 | } |
| 133 | if (indices == null || tableInfo.indices == null) { |
| 134 | // if one us is missing index information, seems like we couldn't acquire the |
| 135 | // information so we better skip. |
| 136 | return true; |
| 137 | } |
| 138 | return indices.equals(tableInfo.indices); |
| 139 | } |
| 140 | |
| 141 | @Override |
| 142 | public int hashCode() { |
no outgoing calls
no test coverage detected