1 package net.sourceforge.phpeclipse.xdebug.ui;
4 * A key/value set whose data is passed into Runtime.exec(...)
6 public class EnvironmentVariable
8 // The name of the environment variable
11 // The value of the environment variable
14 public EnvironmentVariable(String name, String value)
21 * Returns this variable's name, which serves as the key in the key/value
22 * pair this variable represents
24 * @return this variable's name
26 public String getName()
32 * Returns this variables value.
34 * @return this variable's value
36 public String getValue()
42 * Sets this variable's value
45 public void setValue(String value)
51 * @see java.lang.Object#toString()
53 public String toString() {
59 * @see java.lang.Object#equals(java.lang.Object)
61 public boolean equals(Object obj) {
62 boolean equal = false;
63 if (obj instanceof EnvironmentVariable) {
64 EnvironmentVariable var = (EnvironmentVariable)obj;
65 equal = var.getName().equals(name);
70 * @see java.lang.Object#hashCode()
72 public int hashCode() {
73 return name.hashCode();