/** * Bind this key to a value. * * @param value The value to bind this key to. * @return A bound value. */ public TypedEntry<A> bindValue(A value) { return new TypedEntry<A>(this, value); }
/** * 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); }
/** * Bind this key to a value. * * @param value The value to bind this key to. * @return A bound value. */ public TypedEntry<A> bindValue(A value) { return new TypedEntry<A>(this, value); }
/** * Bind this key to a value. * * @param value The value to bind this key to. * @return A bound value. */ public TypedEntry<A> bindValue(A value) { return new TypedEntry<A>(this, value); }