1 64 65 package com.jcorporate.expresso.kernel.util; 66 67 74 75 public class NameValuePair { 76 77 80 private String name; 81 82 85 private Object value; 86 87 90 public NameValuePair() { 91 name = null; 92 value = null; 93 } 94 95 102 public NameValuePair(String newName, Object newValue) { 103 name = newName; 104 value = newValue; 105 } 106 107 112 public String getName() { 113 return name; 114 } 115 116 121 public void setName(String name) { 122 this.name = name; 123 } 124 125 130 public void setValue(Object value) { 131 this.value = value; 132 } 133 134 139 public Object getValue() { 140 return value; 141 } 142 143 149 public int hashCode() { 150 return name.hashCode(); 151 152 } 153 } | Popular Tags |