yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.qianwen.smartman.modules.cps.utils;
 
import com.qianwen.core.tool.utils.Func;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/utils/StringUtils.class */
public final class StringUtils {
    private StringUtils() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }
 
    public static String getKey(Object... values) {
        if (Func.isEmpty(values)) {
            return "";
        }
        StringBuilder sb = new StringBuilder();
        boolean flag = false;
        for (Object value : values) {
            if (Func.isNotEmpty(value)) {
                if (flag) {
                    sb.append("-");
                }
                flag = true;
                sb.append(value);
            }
        }
        return sb.toString();
    }
}