/** * Adds the given key and value to the flash. * * @param key The key to add to this result's flash * @param value The value to add to this result's flash * @return A copy of this result with the key and value added to its flash scope. */ public Result flashing(String key, String value) { Map<String, String> newValues = new HashMap<>(1); newValues.put(key, value); return flashing(newValues); }
/** * Adds the given key and value to the flash. * * @param key The key to add to this result's flash * @param value The value to add to this result's flash * @return A copy of this result with the key and value added to its flash scope. */ public Result flashing(String key, String value) { Map<String, String> newValues = new HashMap<>(1); newValues.put(key, value); return flashing(newValues); }
/** * Adds the given key and value to the flash. * * @param key The key to add to this result's flash * @param value The value to add to this result's flash * @return A copy of this result with the key and value added to its flash scope. */ public Result flashing(String key, String value) { Map<String, String> newValues = new HashMap<>(1); newValues.put(key, value); return flashing(newValues); }