/** * Returns a date value associated with the specified key, or the default * value if the key does not exist. Date values can be converted from * standard UTC time formats. * * @param key The key to look up. * @param defaultValue The default value. * @return The date value associated with the specified key. */ Date getDate(String key, Date defaultValue) { if (toUpdate.containsKey(key)) return Value.toDate(toUpdate.get(key).toString()); return getContent().getDate(key, defaultValue); }
/** * Returns a date value associated with the specified key. Date values can * be converted from standard UTC time formats. * * @param key The key to look up. * @return The date value associated with the specified key. */ Date getDate(String key) { if (toUpdate.containsKey(key)) return Value.toDate(toUpdate.get(key).toString()); if (getContent().containsKey(key)) { return getContent().getDate(key); } else { return null; } }