org.mlflow.utils.EnvironmentUtils Maven / Gradle / Ivy
package org.mlflow.utils;
/** Utilities for reading from / writing to the system environment */
public class EnvironmentUtils {
public static int getIntegerValue(String varName, int defaultValue) {
String rawValue = System.getenv(varName);
if (rawValue == null) {
return defaultValue;
} else {
return Integer.valueOf(rawValue);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy