public boolean getBool(String container, String property) { Object value = getProperty(container, property); if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); } return false; }
public int getInt(String container, String property) { Object value = getProperty(container, property); if (value instanceof Number) { return ((Number) value).intValue(); } return 0; }
@SuppressWarnings("unchecked") public <T> List<T> getList(String container, String property) { Object value = getProperty(container, property); if (value instanceof List) { return (List<T>) value; } return Collections.emptyList(); }
public String getString(String container, String property) { Object value = getProperty(container, property); if (value == null) { return null; } return value.toString(); }
public boolean getBool(String container, String property) { Object value = getProperty(container, property); if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); } return false; }
@SuppressWarnings("unchecked") public <T> Map<String, T> getMap(String container, String property) { Object value = getProperty(container, property); if (value instanceof Map) { return (Map<String, T>) value; } return Collections.emptyMap(); }
public int getInt(String container, String property) { Object value = getProperty(container, property); if (value instanceof Number) { return ((Number) value).intValue(); } return 0; }
@SuppressWarnings("unchecked") public <T> List<T> getList(String container, String property) { Object value = getProperty(container, property); if (value instanceof List) { return (List<T>) value; } return Collections.emptyList(); }
public String getString(String container, String property) { Object value = getProperty(container, property); if (value == null) { return null; } return value.toString(); }
@SuppressWarnings("unchecked") public <T> Map<String, T> getMap(String container, String property) { Object value = getProperty(container, property); if (value instanceof Map) { return (Map<String, T>) value; } return Collections.emptyMap(); }