private void resizeTables(){
  if (mObjectDataUsed > mObjectData.length - MAX_DATA_SIZE) {
    mObjectData=Arrays.copyOf(mObjectData,mObjectData.length * 2);
  }
  if (mObjectCount < mTypes.length) {
    return;
  }
  mObjectOffset=Arrays.copyOf(mObjectOffset,mObjectOffset.length * 2);
  mTypes=Arrays.copyOf(mTypes,mTypes.length * 2);
  mObjects=Arrays.copyOf(mObjects,mObjects.length * 2);
  mRect=Arrays.copyOf(mRect,mRect.length * 2);
}

private void resizeTables ( ) { if ( mObjectDataUsed > mObjectData . length - MAX_DATA_SIZE ) { mObjectData = Arrays . copyOf ( mObjectData , mObjectData . length * 2 ) ; } if ( mObjectCount < mTypes . length ) { return ; } mObjectOffset = Arrays . copyOf ( mObjectOffset , mObjectOffset . length * 2 ) ; mTypes = Arrays . copyOf ( mTypes , mTypes . length * 2 ) ; mObjects = Arrays . copyOf ( mObjects , mObjects . length * 2 ) ; mRect = Arrays . copyOf ( mRect , mRect . length * 2 ) ; }
resize tables as the number of objects grow
