MCPcopy
hub / github.com/google/guava / checkState

Method checkState

guava/src/com/google/common/base/Preconditions.java:516–520  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

allocArraysMethod · 0.95
allocArraysMethod · 0.95
checkAcquiredLockMethod · 0.95
runMethod · 0.95
setUpMethod · 0.95
keyEquivalenceMethod · 0.45
valueEquivalenceMethod · 0.45
initialCapacityMethod · 0.45
concurrencyLevelMethod · 0.45
maximumSizeMethod · 0.45

Calls 3

stringValueOfMethod · 0.95
lenientFormatMethod · 0.95
lenientFormatMethod · 0.45

Tested by 15

setUpMethod · 0.76
setUpMethod · 0.36
createMethod · 0.36
applyMethod · 0.36
setSizeMethod · 0.36
setSizeRangeMethod · 0.36
testAllDeclarationsMethod · 0.36