public static void checkState(boolean expression, @Nullable String errorMessageTemplate, @Nullable Object... errorMessageArgs) {
        if (!expression) {
            throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs));
        }
    }
================================================
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