Returns element at the specified position. This method does not do bounds check and may cause memory corruption if index is out of bounds. Instead, the responsibility to check bounds is placed on application code, which is often the case anyway, for example in indexed for() loop. @param index of th
(int index)
| 185 | * @return element at the specified position. |
| 186 | */ |
| 187 | @Override |
| 188 | public T getQuick(int index) { |
| 189 | assert index < pos : "index out of bounds, " + index + " >= " + pos; |
| 190 | return buffer[index]; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Returns element at the specified position or null, if element index is |
no outgoing calls