blob: a06a562c4447d8ec7e7177c31cec6409283672bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.archphantom.shenanigans.elements.variables;
import java.io.Serializable;
import java.util.Hashtable;
import org.archphantom.shenanigans.elements.values.Value;
public class VarTable implements Serializable {
private static final long serialVersionUID = 7310223054349729170L;
private Hashtable<String, Value> vars;
public VarTable () {
vars = new Hashtable<String, Value>();
}
public Value set (String identifier, Value value) {
vars.put(identifier, value);
return value;
}
public Value get (String identifier) {
return vars.get(identifier);
}
}
|