package org.skywalking.apm.collector.worker.tools;

import java.util.Map;

/**
 * @author pengys5
 */
public enum ParameterTools {
    INSTANCE;

    public String toString(Map<String, String[]> request, String key) {
        if (request.get(key) != null) {
            return request.get(key)[0];
        } else {
            return "";
        }
    }

}
