(i == (bufferArrayList.size() - 1)) ? (size& r) : pageSize);
(s<pageSize) ? s : pageSize);
public int[] toIntArray() {    if (size > 0) {        int[] resultArray = new int[size];        //copy all the content int into the resultArray        int array_offset = 0;        for (int i = 0; i < bufferArrayList.size(); i++) {            System.arraycopy(                (int[]) bufferArrayList.get(i),                0,                resultArray,                array_offset,                (i == (bufferArrayList.size() - 1)) ? (size& r) : pageSize);//            (i == (bufferArrayList.size() - 1)) ? size() % pageSize : pageSize);            array_offset += pageSize;        }        return resultArray;    }    return null;}