1 package com.teamkonzept.field; 2 3 9 public class TKOptionFieldEntry 10 { 11 13 public final static String OPTION_KEY = "OPTION"; 14 public final static String VALUE_KEY = "VALUE"; 15 16 19 public String option = null; 20 21 24 public String value; 25 26 public TKOptionFieldEntry (String option, String value) 27 { 28 this.option = option; 29 this.value = value; 30 } 31 32 41 public boolean equals (Object object) 42 { 43 if (object == null) 44 { 45 return false; 46 } 47 48 if (object == this) 49 { 50 return true; 51 } 52 53 if (! this.getClass().equals(object.getClass())) 54 { 55 return false; 56 } 57 58 TKOptionFieldEntry field = (TKOptionFieldEntry) object; 59 60 return (this.option == null ? field.option == null : this.option.equals(field.option)) && 61 (this.value == null ? field.value == null : this.value.equals(field.value)); 62 } 63 64 69 public int hashCode () 70 { 71 return super.hashCode(); 73 } 74 75 } 76 | Popular Tags |