@Override
    protected E doGet(int index) {
        assert (index >= 0 && index < size);

        // INLINE: return values[physIndex(index)];
        int physIdx = index+start;
        if (index >= gapIndex) {
            physIdx += gapSize;
        }
        if (physIdx >= values.length) {
            physIdx -= values.length;
        }
        return values[physIdx];
    }
Initialize all instance fields.

@param values	new values array
@param size		new size
jphp-runtime/src/php/runtime/memory/support/GapList.java