com.trendyol.mpc.kafkathena.commons.util.extensions.KSMapSupport Maven / Gradle / Ivy
package com.trendyol.mpc.kafkathena.commons.util.extensions;
import com.trendyol.mpc.kafkathena.commons.model.sharedfactory.KSSharedConsumerFactoryProperties;
import com.trendyol.mpc.kafkathena.commons.model.sharedfactory.KSSharedProducerFactoryProperties;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
public interface KSMapSupport {
Logger log = LoggerFactory.getLogger(KSMapSupport.class);
default Map mergeKafkaProps(Map from, Map to) {
if (from == null) {
return to;
}
Map