{@inheritDoc}
(int fromIndex, int toIndex)
| 102 | * {@inheritDoc} |
| 103 | */ |
| 104 | @SuppressWarnings("unchecked") |
| 105 | @Override |
| 106 | public List<E> subList(int fromIndex, int toIndex) { |
| 107 | int size = toIndex - fromIndex; |
| 108 | E[] newContent = (E[]) new Object[size]; |
| 109 | System.arraycopy(contents, fromIndex, newContent, 0, size); |
| 110 | return new Tuple<>(newContent); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Returns a tuple containing the specified range of elements. |