1 5 package com.teamkonzept.field; 6 7 import com.teamkonzept.lib.*; 8 9 public class TKFieldSwitchListData { 10 public TKVector data; 11 public String addAlternative; 12 13 public TKFieldSwitchListData( String addAlternative, TKVector data ) 14 { 15 this.addAlternative = addAlternative; 16 this.data = data; 17 } 18 19 public String toString() 20 { 21 return "( addAlternative = \""+addAlternative+"\", data="+data.toString()+" )"; 22 } 23 24 public boolean equals(Object other) 25 { 26 if (other != null && getClass() == other.getClass()) 27 { 28 TKFieldSwitchListData dataOther = (TKFieldSwitchListData) other; 29 return dataOther.data.equals(data) && dataOther.addAlternative.equals(addAlternative); 30 } 31 return false; 32 } 33 34 } 35 | Popular Tags |