Lines Matching defs:object

1111     private static void checkSorted(Object object) {
1112 if (object instanceof int[]) {
1113 checkSorted((int[]) object);
1114 } else if (object instanceof long[]) {
1115 checkSorted((long[]) object);
1116 } else if (object instanceof short[]) {
1117 checkSorted((short[]) object);
1118 } else if (object instanceof byte[]) {
1119 checkSorted((byte[]) object);
1120 } else if (object instanceof char[]) {
1121 checkSorted((char[]) object);
1122 } else if (object instanceof float[]) {
1123 checkSorted((float[]) object);
1124 } else if (object instanceof double[]) {
1125 checkSorted((double[]) object);
1126 } else if (object instanceof Integer[]) {
1127 checkSorted((Integer[]) object);
1129 failed("Unknow type of array: " + object + " of class " +
1130 object.getClass().getName());
1207 private static int checkSumXor(Object object) {
1208 if (object instanceof int[]) {
1209 return checkSumXor((int[]) object);
1210 } else if (object instanceof long[]) {
1211 return checkSumXor((long[]) object);
1212 } else if (object instanceof short[]) {
1213 return checkSumXor((short[]) object);
1214 } else if (object instanceof byte[]) {
1215 return checkSumXor((byte[]) object);
1216 } else if (object instanceof char[]) {
1217 return checkSumXor((char[]) object);
1218 } else if (object instanceof float[]) {
1219 return checkSumXor((float[]) object);
1220 } else if (object instanceof double[]) {
1221 return checkSumXor((double[]) object);
1222 } else if (object instanceof Integer[]) {
1223 return checkSumXor((Integer[]) object);
1225 failed("Unknow type of array: " + object + " of class " +
1226 object.getClass().getName());
1303 private static int checkSumPlus(Object object) {
1304 if (object instanceof int[]) {
1305 return checkSumPlus((int[]) object);
1306 } else if (object instanceof long[]) {
1307 return checkSumPlus((long[]) object);
1308 } else if (object instanceof short[]) {
1309 return checkSumPlus((short[]) object);
1310 } else if (object instanceof byte[]) {
1311 return checkSumPlus((byte[]) object);
1312 } else if (object instanceof char[]) {
1313 return checkSumPlus((char[]) object);
1314 } else if (object instanceof float[]) {
1315 return checkSumPlus((float[]) object);
1316 } else if (object instanceof double[]) {
1317 return checkSumPlus((double[]) object);
1318 } else if (object instanceof Integer[]) {
1319 return checkSumPlus((Integer[]) object);
1321 failed("Unknow type of array: " + object + " of class " +
1322 object.getClass().getName());
1399 private static void sortByInsertionSort(Object object) {
1400 if (object instanceof int[]) {
1401 sortByInsertionSort((int[]) object);
1402 } else if (object instanceof long[]) {
1403 sortByInsertionSort((long[]) object);
1404 } else if (object instanceof short[]) {
1405 sortByInsertionSort((short[]) object);
1406 } else if (object instanceof byte[]) {
1407 sortByInsertionSort((byte[]) object);
1408 } else if (object instanceof char[]) {
1409 sortByInsertionSort((char[]) object);
1410 } else if (object instanceof float[]) {
1411 sortByInsertionSort((float[]) object);
1412 } else if (object instanceof double[]) {
1413 sortByInsertionSort((double[]) object);
1414 } else if (object instanceof Integer[]) {
1415 sortByInsertionSort((Integer[]) object);
1417 failed("Unknow type of array: " + object + " of class " +
1418 object.getClass().getName());
1502 private static void sort(Object object) {
1503 if (object instanceof int[]) {
1504 Arrays.sort((int[]) object);
1505 } else if (object instanceof long[]) {
1506 Arrays.sort((long[]) object);
1507 } else if (object instanceof short[]) {
1508 Arrays.sort((short[]) object);
1509 } else if (object instanceof byte[]) {
1510 Arrays.sort((byte[]) object);
1511 } else if (object instanceof char[]) {
1512 Arrays.sort((char[]) object);
1513 } else if (object instanceof float[]) {
1514 Arrays.sort((float[]) object);
1515 } else if (object instanceof double[]) {
1516 Arrays.sort((double[]) object);
1517 } else if (object instanceof Integer[]) {
1518 Arrays.sort((Integer[]) object);
1520 failed("Unknow type of array: " + object + " of class " +
1521 object.getClass().getName());
1525 private static void sortSubArray(Object object, int fromIndex, int toIndex) {
1526 if (object instanceof int[]) {
1527 Arrays.sort((int[]) object, fromIndex, toIndex);
1528 } else if (object instanceof long[]) {
1529 Arrays.sort((long[]) object, fromIndex, toIndex);
1530 } else if (object instanceof short[]) {
1531 Arrays.sort((short[]) object, fromIndex, toIndex);
1532 } else if (object instanceof byte[]) {
1533 Arrays.sort((byte[]) object, fromIndex, toIndex);
1534 } else if (object instanceof char[]) {
1535 Arrays.sort((char[]) object, fromIndex, toIndex);
1536 } else if (object instanceof float[]) {
1537 Arrays.sort((float[]) object, fromIndex, toIndex);
1538 } else if (object instanceof double[]) {
1539 Arrays.sort((double[]) object, fromIndex, toIndex);
1540 } else if (object instanceof Integer[]) {
1541 Arrays.sort((Integer[]) object, fromIndex, toIndex);
1543 failed("Unknow type of array: " + object + " of class " +
1544 object.getClass().getName());
1548 private static void checkSubArray(Object object, int fromIndex, int toIndex, int m) {
1549 if (object instanceof int[]) {
1550 checkSubArray((int[]) object, fromIndex, toIndex, m);
1551 } else if (object instanceof long[]) {
1552 checkSubArray((long[]) object, fromIndex, toIndex, m);
1553 } else if (object instanceof short[]) {
1554 checkSubArray((short[]) object, fromIndex, toIndex, m);
1555 } else if (object instanceof byte[]) {
1556 checkSubArray((byte[]) object, fromIndex, toIndex, m);
1557 } else if (object instanceof char[]) {
1558 checkSubArray((char[]) object, fromIndex, toIndex, m);
1559 } else if (object instanceof float[]) {
1560 checkSubArray((float[]) object, fromIndex, toIndex, m);
1561 } else if (object instanceof double[]) {
1562 checkSubArray((double[]) object, fromIndex, toIndex, m);
1563 } else if (object instanceof Integer[]) {
1564 checkSubArray((Integer[]) object, fromIndex, toIndex, m);
1566 failed("Unknow type of array: " + object + " of class " +
1567 object.getClass().getName());
1747 private static void checkRange(Object object, int m) {
1748 if (object instanceof int[]) {
1749 checkRange((int[]) object, m);
1750 } else if (object instanceof long[]) {
1751 checkRange((long[]) object, m);
1752 } else if (object instanceof short[]) {
1753 checkRange((short[]) object, m);
1754 } else if (object instanceof byte[]) {
1755 checkRange((byte[]) object, m);
1756 } else if (object instanceof char[]) {
1757 checkRange((char[]) object, m);
1758 } else if (object instanceof float[]) {
1759 checkRange((float[]) object, m);
1760 } else if (object instanceof double[]) {
1761 checkRange((double[]) object, m);
1762 } else if (object instanceof Integer[]) {
1763 checkRange((Integer[]) object, m);
1765 failed("Unknow type of array: " + object + " of class " +
1766 object.getClass().getName());