(String functionName)
| 547 | |
| 548 | |
| 549 | private void checkMinMax(String functionName) { |
| 550 | if (count == 0) { |
| 551 | String msg = |
| 552 | String.format("Cannot use %s() on an empty %s.", |
| 553 | functionName, getClass().getSimpleName()); |
| 554 | throw new RuntimeException(msg); |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | |
| 559 | /** |