1 package net.sourceforge.phpeclipse.xdebug.ui;
4 * A key/value set whose data is passed into Runtime.exec(...)
6 public class EnvironmentVariable {
7 // The name of the environment variable
10 // The value of the environment variable
13 public EnvironmentVariable(String name, String value) {
19 * Returns this variable's name, which serves as the key in the key/value
20 * pair this variable represents
22 * @return this variable's name
24 public String getName() {
29 * Returns this variables value.
31 * @return this variable's value
33 public String getValue() {
38 * Sets this variable's value
42 public void setValue(String value) {
49 * @see java.lang.Object#toString()
51 public String toString() {
58 * @see java.lang.Object#equals(java.lang.Object)
60 public boolean equals(Object obj) {
61 boolean equal = false;
62 if (obj instanceof EnvironmentVariable) {
63 EnvironmentVariable var = (EnvironmentVariable) obj;
64 equal = var.getName().equals(name);
72 * @see java.lang.Object#hashCode()
74 public int hashCode() {
75 return name.hashCode();