All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.paradoxical.EnvironmentVar Maven / Gradle / Ivy

There is a newer version: 1.28
Show newest version
package io.paradoxical;

import lombok.Value;

import java.util.ArrayList;
import java.util.List;

@Value
public class EnvironmentVar {
    String envVarName;
    String envVarValue;

    public static String asEnvVar(EnvironmentVar var) {
        return var.envVarName + "=" + var.envVarValue;
    }

    public static List asEnvVars(List envVars) {
        List vars = new ArrayList<>();

        for (final EnvironmentVar envVar : envVars) {
            vars.add(EnvironmentVar.asEnvVar(envVar));
        }

        return vars;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy