4647484950515253545556
int size = list.size(); if (sourceOffset >= size) { sourceOffset -= size; } else { int x = Math.min(size - sourceOffset, length); list.toArray(sourceOffset, dest, destOffset, x); destOffset += x; sourceOffset = 0; length -= x; } }