MCPcopy Create free account
hub / github.com/antlr/codebuff / checkArgument

Method checkArgument

output/java_guava/1.4.19/Preconditions.java:110–114  ·  view source on GitHub ↗

Ensures the truth of an expression involving one or more parameters to the calling method. @param expression a boolean expression @throws IllegalArgumentException if expression is false

(boolean expression)

Source from the content-addressed store, hash-verified

108
109
110 public static void checkArgument(boolean expression) {
111 if (!expression) {
112 throw new IllegalArgumentException();
113 }
114 }
115
116 /**
117 * Ensures the truth of an expression involving one or more parameters to the calling method.

Callers 15

newHasherMethod · 0.95
newHasherMethod · 0.95
getInet4AddressMethod · 0.95
toAddrStringMethod · 0.95
getCompatIPv4AddressMethod · 0.95
get6to4IPv4AddressMethod · 0.95
TeredoInfoMethod · 0.95
getTeredoInfoMethod · 0.95
getIsatapIPv4AddressMethod · 0.95
decrementMethod · 0.95
incrementMethod · 0.95

Calls 2

formatMethod · 0.95
valueOfMethod · 0.45

Tested by 1

LimitedInputStreamMethod · 0.36