01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/field/TKFieldSwitchListData.java,v 1.9 2001/06/19 11:52:22 ralf Exp $
03: *
04: */
05: package com.teamkonzept.field;
06:
07: import com.teamkonzept.lib.*;
08:
09: public class TKFieldSwitchListData {
10: public TKVector data;
11: public String addAlternative;
12:
13: public TKFieldSwitchListData(String addAlternative, TKVector data) {
14: this .addAlternative = addAlternative;
15: this .data = data;
16: }
17:
18: public String toString() {
19: return "( addAlternative = \"" + addAlternative + "\", data="
20: + data.toString() + " )";
21: }
22:
23: public boolean equals(Object other) {
24: if (other != null && getClass() == other.getClass()) {
25: TKFieldSwitchListData dataOther = (TKFieldSwitchListData) other;
26: return dataOther.data.equals(data)
27: && dataOther.addAlternative.equals(addAlternative);
28: }
29: return false;
30: }
31:
32: }
|