
io.latent.storm.rabbitmq.config.ConfigUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of storm-rabbitmq Show documentation
Show all versions of storm-rabbitmq Show documentation
A library of tools for interacting with RabbitMQ from Storm.
package io.latent.storm.rabbitmq.config;
import java.util.Map;
public class ConfigUtils
{
public static String getFromMap(String key, Map map) {
return map.get(key).toString();
}
public static int getFromMapAsInt(String key, Map map) {
return Integer.valueOf(map.get(key).toString());
}
public static boolean getFromMapAsBoolean(String key, Map map) {
return Boolean.valueOf(map.get(key).toString());
}
public static void addToMap(String key, Map map, String value) {
map.put(key, value);
}
public static void addToMap(String key, Map map, int value) {
map.put(key, Integer.toString(value));
}
public static void addToMap(String key, Map map, boolean value) {
map.put(key, Boolean.toString(value));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy