1 12 package org.eclipse.debug.internal.ui.launchConfigurations; 13 14 17 public class EnvironmentVariable 18 { 19 private String name; 21 22 private String value; 24 25 public EnvironmentVariable(String name, String value) 26 { 27 this.name = name; 28 this.value = value; 29 } 30 31 37 public String getName() 38 { 39 return name; 40 } 41 42 47 public String getValue() 48 { 49 return value; 50 } 51 52 56 public void setValue(String value) 57 { 58 this.value = value; 59 } 60 61 64 public String toString() { 65 return getName(); 66 } 67 68 69 72 public boolean equals(Object obj) { 73 boolean equal = false; 74 if (obj instanceof EnvironmentVariable) { 75 EnvironmentVariable var = (EnvironmentVariable)obj; 76 equal = var.getName().equals(name); 77 } 78 return equal; 79 } 80 83 public int hashCode() { 84 return name.hashCode(); 85 } 86 } 87 | Popular Tags |