1 22 package org.jboss.xb.binding.metadata; 23 24 28 public class PutMethodMetaData 29 { 30 private String methodName; 31 private String keyType; 32 private String valueType; 33 34 public String getName() 35 { 36 return methodName; 37 } 38 39 public void setName(String methodName) 40 { 41 this.methodName = methodName; 42 } 43 44 public String getKeyType() 45 { 46 return keyType; 47 } 48 49 public void setKeyType(String keyType) 50 { 51 this.keyType = keyType; 52 } 53 54 public String getValueType() 55 { 56 return valueType; 57 } 58 59 public void setValueType(String valueType) 60 { 61 this.valueType = valueType; 62 } 63 64 public boolean equals(Object o) 65 { 66 if(this == o) 67 { 68 return true; 69 } 70 if(!(o instanceof PutMethodMetaData)) 71 { 72 return false; 73 } 74 75 final PutMethodMetaData putMethodMetaData = (PutMethodMetaData)o; 76 77 if(keyType != null ? !keyType.equals(putMethodMetaData.keyType) : putMethodMetaData.keyType != null) 78 { 79 return false; 80 } 81 if(methodName != null ? !methodName.equals(putMethodMetaData.methodName) : putMethodMetaData.methodName != null) 82 { 83 return false; 84 } 85 if(valueType != null ? !valueType.equals(putMethodMetaData.valueType) : putMethodMetaData.valueType != null) 86 { 87 return false; 88 } 89 90 return true; 91 } 92 93 public int hashCode() 94 { 95 int result; 96 result = (methodName != null ? methodName.hashCode() : 0); 97 result = 29 * result + (keyType != null ? keyType.hashCode() : 0); 98 result = 29 * result + (valueType != null ? valueType.hashCode() : 0); 99 return result; 100 } 101 } 102 | Popular Tags |