()
| 540 | /// |
| 541 | /// - List#hashCode() |
| 542 | @Override |
| 543 | public int hashCode() { |
| 544 | int result = 1; |
| 545 | Iterator<?> it = iterator(); |
| 546 | while (it.hasNext()) { |
| 547 | Object object = it.next(); |
| 548 | result = (31 * result) + (object == null ? 0 : object.hashCode()); |
| 549 | } |
| 550 | return result; |
| 551 | } |
| 552 | |
| 553 | /// Searches this list for the specified object and returns the index of the |
| 554 | /// first occurrence. |