Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. @param expression a boolean expression @throws IllegalStateException if {@code expression} is false @see Verify#verify Verify.verify()
(boolean expression)
| 514 | * @see Verify#verify Verify.verify() |
| 515 | */ |
| 516 | public static void checkState(boolean expression) { |
| 517 | if (!expression) { |
| 518 | throw new IllegalStateException(); |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | /** |
| 523 | * Ensures the truth of an expression involving the state of the calling instance, but not |