public static void checkPositionIndexes(int start, int end, int size) {
        if (start < 0 || end < start || end > size) {
            throw new IndexOutOfBoundsException(badPositionIndexes(start, end, size));
        }
    }
================================================
Created by JessYan on 26/09/2016 13:59
<a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
<a href="https://github.com/JessYanCoding">Follow me</a>
================================================
arms/src/main/java/com/jess/arms/utils/Preconditions.java