// Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

package de.bytefish.fcmjava.model.topics;

import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;

public class TopicList {

    private final List<Topic> topics;

    public TopicList(List<Topic> topics) {
        this.topics = topics;
    }

    public List<Topic> getTopics() {
        return topics;
    }

    public String getTopicsCondition() {
        return topics.stream()
                .map(topic -> String.format("'%s' in topics", topic))
                .collect(Collectors.joining(" || "));
    }
}

@@ -640,16 +640,26 @@
 %22, topic
+.getName()
 ))%0A     

Fix TopicList Concatenation