@Test void testIsInvalidParams() { Set<String> runModes = ImmutableSet.of("mode1", "mode2"); assertFalse(RunMode.is(runModes)); assertFalse(RunMode.is(runModes, (String[])null)); assertFalse(RunMode.is(runModes, (String)null)); }
@Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes) { if (runModes != null && expectedRunModes != null) { for (String expectedRunMode : expectedRunModes) { if (runModes.contains(expectedRunMode)) { return true; } } } return false; }
RunMode { @Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes) { if (runModes != null && expectedRunModes != null) { for (String expectedRunMode : expectedRunModes) { if (runModes.contains(expectedRunMode)) { return true; } } } return false; } }
RunMode { @Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes) { if (runModes != null && expectedRunModes != null) { for (String expectedRunMode : expectedRunModes) { if (runModes.contains(expectedRunMode)) { return true; } } } return false; } private  RunMode(); }
RunMode { @Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes) { if (runModes != null && expectedRunModes != null) { for (String expectedRunMode : expectedRunModes) { if (runModes.contains(expectedRunMode)) { return true; } } } return false; } private  RunMode(); @Deprecated static boolean is(Set<String> runModes, String... expectedRunModes); @Deprecated static boolean isAuthor(Set<String> runModes); @Deprecated static boolean isPublish(Set<String> runModes); @Deprecated static boolean disableIfNoRunModeActive(Set<String> runModes, String[] allowedRunModes,
      ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotAuthor(Set<String> runModes, ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log); }
RunMode { @Deprecated public static boolean is(Set<String> runModes, String... expectedRunModes) { if (runModes != null && expectedRunModes != null) { for (String expectedRunMode : expectedRunModes) { if (runModes.contains(expectedRunMode)) { return true; } } } return false; } private  RunMode(); @Deprecated static boolean is(Set<String> runModes, String... expectedRunModes); @Deprecated static boolean isAuthor(Set<String> runModes); @Deprecated static boolean isPublish(Set<String> runModes); @Deprecated static boolean disableIfNoRunModeActive(Set<String> runModes, String[] allowedRunModes,
      ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotAuthor(Set<String> runModes, ComponentContext componentContext, Logger log); @Deprecated static boolean disableIfNotPublish(Set<String> runModes, ComponentContext componentContext, Logger log); static final String AUTHOR; static final String PUBLISH; }