@Test public void checkArgumentPass() { checkArgument(true, "should be %s", "foo"); }
public static void checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs) { if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } }
Preconditions { public static void checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs) { if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } } }
Preconditions { public static void checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs) { if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } } private  Preconditions(); }
Preconditions { public static void checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs) { if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } } private  Preconditions(); static void checkArgument(boolean expression, String errorMessageTemplate,
                                   Object... errorMessageArgs); static T checkNotNull(T reference, String errorMessageTemplate,
                                   Object... errorMessageArgs); static void checkState(boolean expression, String errorMessageTemplate,
                                Object... errorMessageArgs); }
Preconditions { public static void checkArgument(boolean expression, String errorMessageTemplate, Object... errorMessageArgs) { if (!expression) { throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs)); } } private  Preconditions(); static void checkArgument(boolean expression, String errorMessageTemplate,
                                   Object... errorMessageArgs); static T checkNotNull(T reference, String errorMessageTemplate,
                                   Object... errorMessageArgs); static void checkState(boolean expression, String errorMessageTemplate,
                                Object... errorMessageArgs);  }