@ 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 ; }
Checks if given run mode is active .