chameria-service/src/main/java/de/akquinet/chameria/services/ActivationUtils.java
public static boolean containsArgument(String[] args, String arg) {
         if (args == null || arg == null || arg.length() == 0 || args.length == 0) {
             return false;
         } else {
             for (String a : args) {
                 if (a.equalsIgnoreCase(arg)) {
                     return true;
                 } else if (a.startsWith(arg + "=")) {
                     return true;
                 }

             }
             return false;
         }
    }
public static boolean containsArgument(String[] args, String arg) {
         if (args == null || arg == null || arg.length() == 0 || args.length == 0) {
             return false;
         } else {
             for (String a : args) {
                 if (a.equalsIgnoreCase(arg)) {
                     return true;
                 } else if (a.startsWith(arg + "=")) {
                     return true;
                 }

             }
             return false;
         }
    }
public static boolean containsArgument ( String [ ] args , String arg ) { if ( args == null || arg == null || arg . length ( ) == 0 || args . length == 0 ) { return false ; } else { for ( String a : args ) { if ( a . equalsIgnoreCase ( arg ) ) { return true ; } else if ( a . startsWith ( arg + "=" ) ) { return true ; } } return false ; } }
Checks if the arguments contains the argument <code>arg</code>.
@param args the arguments
@param arg the argument to find
@return <code>true</code> if the
Checks if the arguments contains the argument <code > arg< / code > .