src/edu/kit/informatik/literatur_system/Command.java
/**
     * Generates a list of {@linkplain AuthorNames} from a string input.
     * @param input the string input
     * @param delimiter the separator character between the names
     * @param start the position in the input string, where the list of names begin
     * @param end the position in the input string, where the list of names end
     * @return a list of {@linkplain AuthorNames}
     */
Generates a list of  AuthorNames from a string input.
Generates a list of AuthorNames from a string input .
private static List<AuthorNames> listAuthorNames(
            final String input, final String delimiter,
            final int start, final int end) {
        return Arrays.stream(input.substring(start, end).split(delimiter))
                .filter(x -> !x.isEmpty())
                .map(x -> x.split(" "))
                .map(x -> new AuthorNames(x[0], x[1]))
                .collect(Collectors.toList());
    }
private static List < AuthorNames > listAuthorNames ( final String input , final String delimiter , final int start , final int end ) { return Arrays . stream ( input . substring ( start , end ) . split ( delimiter ) ) . filter ( x -> ! x . isEmpty ( ) ) . map ( x -> x . split ( " " ) ) . map ( x -> new AuthorNames ( x [ 0 ] , x [ 1 ] ) ) . collect ( Collectors . toList ( ) ) ; }
Generates a list of {@linkplain AuthorNames} from a string input.
Generates a list of { @linkplain AuthorNames } from a string input .