text: public int get(int index, long[] arr, int off, int len) {assert len > 0 : "len must be > 0 (got " + len + ")";assert index >= 0 && index < size();assert off + len <= arr.length;final int gets = Math.min(size() - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o) {arr[o] = get(i);}return gets;}