public E get(int n) {
        if (n < 0 || n >= size()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        return mElements[(mHead + n) & mCapacityBitmask];
    }
Get nth (0 <= n <= size()-1) element of the CircularArray.

@param n The zero based element index in the CircularArray.
@return The nth element.
@throws {@link ArrayIndexOutOfBoundsException} if n < 0 or n >= size().
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/CircularArray.java