Home | History | Annotate | Download | only in conscrypt

Lines Matching refs:start

70      * Ensures that {@code start} and {@code end} specify a valid <i>positions</i> in an array, list
74 * @param start a user-supplied index identifying a starting position in an array, list or string
78 * or if {@code end} is less than {@code start}
81 static void checkPositionIndexes(int start, int end, int size) {
83 if (start < 0 || end < start || end > size) {
84 throw new IndexOutOfBoundsException(badPositionIndexes(start, end, size));
88 private static String badPositionIndexes(int start, int end, int size) {
89 if (start < 0 || start > size) {
90 return badPositionIndex(start, size, "start index");
95 // end < start
96 return String.format("end index (%s) must not be less than start index (%s)", end, start);