public E getLast() {
        if (mHead == mTail) {
            throw new ArrayIndexOutOfBoundsException();
        }
        return mElements[(mTail - 1) & mCapacityBitmask];
    }
Get last element of the CircularArray.

@return The last element.
@throws {@link ArrayIndexOutOfBoundsException} if CircularArray is empty.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/collection/CircularArray.java