/** * Get the request attributes. * @return the request builder's request attributes. */ public TypedMap attrs() { return new TypedMap(req.attrs()); }
/** * Get the request attributes. * @return the request builder's request attributes. */ public TypedMap attrs() { return new TypedMap(req.attrs()); }
/** * Get the request attributes. * @return the request builder's request attributes. */ public TypedMap attrs() { return new TypedMap(req.attrs()); }
/** * Update the map with the given key and value, returning a new instance of the map. * * @param key The key to set. * @param value The value to use. * @param <A> The type of value. * @return A new instance of the map with the new entry added. */ public <A> TypedMap put(TypedKey<A> key, A value) { return new TypedMap(underlying.updated(key.asScala(), value)); }
/** * Update the map with the given key and value, returning a new instance of the map. * * @param key The key to set. * @param value The value to use. * @param <A> The type of value. * @return A new instance of the map with the new entry added. */ public <A> TypedMap put(TypedKey<A> key, A value) { return new TypedMap(underlying.updated(key.asScala(), value)); }
/** * Update the map with the given key and value, returning a new instance of the map. * * @param key The key to set. * @param value The value to use. * @param <A> The type of value. * @return A new instance of the map with the new entry added. */ public <A> TypedMap put(TypedKey<A> key, A value) { return new TypedMap(underlying.updated(key.asScala(), value)); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Removes keys from the map, returning a new instance of the map. * * @param keys The keys to remove. * @return A new instance of the map with the entries removed. */ public TypedMap remove(TypedKey<?>... keys) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedKey<?> k : keys) { newUnderlying = newUnderlying.$minus(Scala.varargs(k.asScala())); } return new TypedMap(newUnderlying); }
/** * Update the map with several entries, returning a new instance of the map. * * @param entries The new entries to add to the map. * @return A new instance of the map with the new entries added. */ public TypedMap putAll(TypedEntry<?>... entries) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedEntry<?> e : entries) { newUnderlying = newUnderlying.updated(((TypedKey<Object>) e.key()).asScala(), e.value()); } return new TypedMap(newUnderlying); }
/** * Update the map with several entries, returning a new instance of the map. * * @param entries The new entries to add to the map. * @return A new instance of the map with the new entries added. */ public TypedMap putAll(TypedEntry<?>... entries) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedEntry<?> e : entries) { newUnderlying = newUnderlying.updated(((TypedKey<Object>) e.key()).asScala(), e.value()); } return new TypedMap(newUnderlying); }
/** * Update the map with several entries, returning a new instance of the map. * * @param entries The new entries to add to the map. * @return A new instance of the map with the new entries added. */ public TypedMap putAll(TypedEntry<?>... entries) { play.api.libs.typedmap.TypedMap newUnderlying = underlying; for (TypedEntry<?> e : entries) { newUnderlying = newUnderlying.updated(((TypedKey<Object>) e.key()).asScala(), e.value()); } return new TypedMap(newUnderlying); }