Here you can find the source of assertIndex(int index, String msg)
Parameter | Description |
---|---|
index | The index. |
msg | The error message. |
public static void assertIndex(int index, String msg)
//package com.java2s; //License from project: Apache License public class Main { /**//from w ww .j a v a2s .c o m * Asserts if index is between 0 and 63. * * @param index The index. * @param msg The error message. */ public static void assertIndex(int index, String msg) { if ((index < 0) || (index > 63)) throw new AssertionError(msg); } }