(String functionName)
| 528 | |
| 529 | |
| 530 | private void checkMinMax(String functionName) { |
| 531 | if (count == 0) { |
| 532 | String msg = |
| 533 | String.format("Cannot use %s() on an empty %s.", |
| 534 | functionName, getClass().getSimpleName()); |
| 535 | throw new RuntimeException(msg); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | |
| 540 | /** |