public static PlatformType getPlatformType()

in bigtop-manager-ai/src/main/java/org/apache/bigtop/manager/ai/core/enums/PlatformType.java [45:55]


    public static PlatformType getPlatformType(String value) {
        if (Objects.isNull(value) || value.isEmpty()) {
            return null;
        }
        for (PlatformType platformType : PlatformType.values()) {
            if (platformType.value.equals(value)) {
                return platformType;
            }
        }
        return null;
    }