{@inheritDoc}
()
| 108 | * {@inheritDoc} |
| 109 | */ |
| 110 | @Override |
| 111 | public int hashCode() { |
| 112 | if (hashCode == 0) { |
| 113 | for (int i = 0; i < size(); i++) { |
| 114 | Object value = get(i); |
| 115 | int hash = (value != null) ? value.hashCode() : 0xbabe; |
| 116 | hashCode ^= hash; |
| 117 | } |
| 118 | if (hashCode == 0) { |
| 119 | hashCode = 0xbabe; |
| 120 | } |
| 121 | } |
| 122 | return hashCode; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Returns the minimum allowed size for this sequence. |