{@inheritDoc}
(Tuple<E> other)
| 151 | * {@inheritDoc} |
| 152 | */ |
| 153 | @Override |
| 154 | public int compareTo(Tuple<E> other) { |
| 155 | int thisSize = this.size(); |
| 156 | int otherSize = other.size(); |
| 157 | |
| 158 | for (int i = 0, n = Math.min(thisSize, otherSize); i < n; i++) { |
| 159 | int result = compare(this.get(i), other.get(i)); |
| 160 | if (result != 0) { |
| 161 | return result; |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | return Integer.compare(thisSize, otherSize); |
| 166 | } |
| 167 | |
| 168 | @SuppressWarnings("unchecked") |
| 169 | private static <T> int compare(T t1, T t2) { |
no test coverage detected