Code example for SimpleBindings

Methods: putAll

0
     * Create a new render context with additional bindings 
     * @param additionalBindings - a dictionary of variables 
     * @return - the new render context 
     */ 
    public RenderContext withAddedBindings(Map additionalBindings) {
        Bindings newBindings = new SimpleBindings();
        newBindings.putAll(this.bindings);
        //noinspection unchecked 
        newBindings.putAll(additionalBindings);
        return withBindings(newBindings);
    } 
} 
Experience pair programming with AI  Get Codota for Java