コード例 #1
0
 /**
  * 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);
 }