@return Returns the display_name's hash code or 0 if it's not set
()
| 145 | |
| 146 | /** @return Returns the {@code display_name}'s hash code or 0 if it's not set */ |
| 147 | @Override |
| 148 | public int hashCode() { |
| 149 | if (display_name == null || display_name.isEmpty()) { |
| 150 | return 0; |
| 151 | } |
| 152 | return display_name.hashCode(); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Just compares the branch display name |