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

i.ConstantsHolder Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
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