/** * Returns the string array value associated with the specified key. * * @param key The key to look up. * @return The string array value associated with the specified key. */ String[] getStringArray(String key) { if (toUpdate.containsKey(key)) { return ((String)toUpdate.get(key)).split("\\|"); } return getContent().getStringArray(key); }
/** * Returns the {@code String[]} value associated with the given key, or * {@code defaultValue} if the key does not exist. * * @param key The key of the value being retrieved. * @param defaultValue The value to return if the key does not exist. * @return The value associated with the given key, or {@code defaultValue} * if the key does not exist. */ String[] getStringArray(String key, String[] defaultValue) { if (!containsKey(key)) return defaultValue; return getStringArray(key); }
/** * Returns the string array value associated with the specified key, or the * default value if the key does not exist. * * @param key The key to look up. * @param defaultValue The default value. * @return The string array value associated with the specified key. */ String[] getStringArray(String key, String[] defaultValue) { if (toUpdate.containsKey(key)) return getStringArray(key); return getContent().getStringArray(key, defaultValue); }