i.ConstantsHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javaee-rt Show documentation
Show all versions of javaee-rt Show documentation
An Execution Environment for Java SCOREs
package i;
import s.java.lang.Object;
import java.util.HashMap;
import java.util.Map;
public class ConstantsHolder {
public static Map getConstants() {
return constants;
}
private static Map constants = new HashMap<>();
public static void addConstant(int constantId, s.java.lang.Object constant) {
RuntimeAssertionError.assertTrue(!constants.containsKey(constantId));
constants.put(constantId, constant);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy