1 package com.teamkonzept.field; 2 3 7 public class TKFieldOptionData { 8 public Object data; 9 public String currJaNein; 10 public String newJaNein; 11 12 public TKFieldOptionData( String currJaNein, String newJaNein, Object data) { 13 this.currJaNein = currJaNein; 14 this.newJaNein = newJaNein; 15 this.data = data; 16 } 17 18 public boolean equals(Object other) 19 { 20 if (other != null && getClass() == other.getClass()) 21 { 22 TKFieldOptionData otherData = (TKFieldOptionData) other; 23 try 24 { 25 return data.equals(otherData.data) && currJaNein.equals(otherData.currJaNein) && newJaNein.equals(otherData.newJaNein); 27 } 28 catch (NullPointerException npe) 29 { 30 return false; 31 } 32 } 33 return false; 34 } 35 36 public String toString() { 37 return "(" 38 +"currJaNein="+currJaNein+"," 39 +"\nnewJaNein="+newJaNein+"," 40 +"\ndata="+(data==null?"null":data.toString()) 41 +"\n)"; 42 } 43 } 45 | Popular Tags |