All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.Variables Maven / Gradle / Ivy

The newest version!
package com.greenpepper;

import java.util.Collections;
import java.util.Map;
import java.util.HashMap;

/**
 * 

Variables class.

* * @author oaouattara * @version $Id: $Id */ public class Variables implements ExecutionContext { private final Map variables = new HashMap(); /** {@inheritDoc} */ public void setVariable(String symbol, Object value) { variables.put( symbol, value ); } /** {@inheritDoc} */ public Object getVariable(String symbol) { return variables.get( symbol ); } /** *

getAllVariables.

* * @return a {@link java.util.Map} object. */ public Map getAllVariables() { return Collections.unmodifiableMap( variables ); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy