io.paradoxical.EnvironmentVar Maven / Gradle / Ivy
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