(String functionName)
| 485 | |
| 486 | |
| 487 | private void checkMinMax(String functionName) { |
| 488 | if (count == 0) { |
| 489 | String msg = |
| 490 | String.format("Cannot use %s() on an empty %s.", |
| 491 | functionName, getClass().getSimpleName()); |
| 492 | throw new RuntimeException(msg); |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | |
| 497 | /** |