/** * Discards the existing flash for this result. * * @return the new result */ public Result withNewFlash() { return withFlash(Collections.emptyMap()); }
/** * Discards the existing flash for this result. * * @return the new result */ public Result withNewFlash() { return withFlash(Collections.emptyMap()); }
/** * Discards the existing flash for this result. * * @return the new result */ public Result withNewFlash() { return withFlash(Collections.emptyMap()); }
/** * Adds values to the flash. * * @param values A map with values to add to this result's flash * @return A copy of this result with values added to its flash scope. */ public Result flashing(Map<String, String> values) { if(this.flash == null) { return withFlash(values); } else { return withFlash(this.flash.adding(values)); } }
/** * Adds values to the flash. * * @param values A map with values to add to this result's flash * @return A copy of this result with values added to its flash scope. */ public Result flashing(Map<String, String> values) { if(this.flash == null) { return withFlash(values); } else { return withFlash(this.flash.adding(values)); } }
/** * Adds values to the flash. * * @param values A map with values to add to this result's flash * @return A copy of this result with values added to its flash scope. */ public Result flashing(Map<String, String> values) { if(this.flash == null) { return withFlash(values); } else { return withFlash(this.flash.adding(values)); } }
/** * Sets a new flash for this result, discarding the existing flash. * * @param flash the flash to set with this result * @return the new result */ public Result withFlash(Map<String, String> flash) { return withFlash(new Flash(flash)); }
/** * Sets a new flash for this result, discarding the existing flash. * * @param flash the flash to set with this result * @return the new result */ public Result withFlash(Map<String, String> flash) { return withFlash(new Flash(flash)); }
/** * Sets a new flash for this result, discarding the existing flash. * * @param flash the flash to set with this result * @return the new result */ public Result withFlash(Map<String, String> flash) { return withFlash(new Flash(flash)); }
/** * Removes values from the flash. * * @param keys Keys to remove from flash * @return A copy of this result with keys removed from its flash scope. */ public Result removingFromFlash(String... keys) { if(this.flash == null) { return withNewFlash(); } return withFlash(this.flash.removing(keys)); }
/** * Removes values from the flash. * * @param keys Keys to remove from flash * @return A copy of this result with keys removed from its flash scope. */ public Result removingFromFlash(String... keys) { if(this.flash == null) { return withNewFlash(); } return withFlash(this.flash.removing(keys)); }
/** * Removes values from the flash. * * @param keys Keys to remove from flash * @return A copy of this result with keys removed from its flash scope. */ public Result removingFromFlash(String... keys) { if(this.flash == null) { return withNewFlash(); } return withFlash(this.flash.removing(keys)); }