@Test public void checkState_throws_ISE_if_expression_is_false() { expectedException.expect(IllegalStateException.class); expectedException.expectMessage("foo"); checkState(false, "foo"); }
public static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs) { if (!expression) { throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs)); } }
OrchestratorUtils { public static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs) { if (!expression) { throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs)); } } }
OrchestratorUtils { public static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs) { if (!expression) { throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs)); } } private  OrchestratorUtils(); }
OrchestratorUtils { public static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs) { if (!expression) { throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs)); } } private  OrchestratorUtils(); static void checkArgument(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs); static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs); @CheckForNull static String defaultIfEmpty(@Nullable String object, @Nullable String defaultValue); @CheckForNull static T defaultIfNull(@Nullable T object, @Nullable T defaultValue); static boolean isEmpty(@Nullable String str); }
OrchestratorUtils { public static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs) { if (!expression) { throw new IllegalStateException(format(errorMessageTemplate, errorMessageArgs)); } } private  OrchestratorUtils(); static void checkArgument(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs); static void checkState(boolean expression, String errorMessageTemplate, @Nullable Object... errorMessageArgs); @CheckForNull static String defaultIfEmpty(@Nullable String object, @Nullable String defaultValue); @CheckForNull static T defaultIfNull(@Nullable T object, @Nullable T defaultValue); static boolean isEmpty(@Nullable String str);  }