src/edu/kit/informatik/campusmanagement/CommandHandler.java
/**
     * Executes a given command
     * @param string the line input
     * @param callback the function to execute in case the command is invalid
     * @return TODO add doc
     */
Executes a given command
@param string the line input
@param callback the function to execute in case the command is invalid
@return TODO add doc
Executes a given command @param string the line input @param callback the function to execute in case the command is invalid @return TODO add doc
public C accept(String string, Consumer<? super String> callback) {
        Objects.requireNonNull(string);
        Objects.requireNonNull(callback);
        final Optional<C> cmd = find(string);
        if (cmd.isPresent())
            cmd.get().apply(target, string);
        else
            callback.accept(string);
        return cmd.orElse(null);
    }
public C accept ( String string , Consumer < ? super String > callback ) { Objects . requireNonNull ( string ) ; Objects . requireNonNull ( callback ) ; final Optional < C > cmd = find ( string ) ; if ( cmd . isPresent ( ) ) cmd . get ( ) . apply ( target , string ) ; else callback . accept ( string ) ; return cmd . orElse ( null ) ; }
Executes a given command
 @param string the line input
 @param callback the function to execute in case the command is invalid
 @return TODO add doc
Executes a given command @param string the line input @param callback the function to execute in case the command is invalid @return TODO add doc