|
@@ -1,47 +1,47 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.server.support; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
5 |
|
- |
import org.litesoft.core.simpletypes.nonpublic.*; |
6 |
|
- |
import org.litesoft.ui.def.nonpublic.support.*; |
7 |
|
- |
|
8 |
|
- |
public class AMDconverterPair extends EqualSupport { |
9 |
|
- |
private FormSendableDataConverter mDataConverter; |
10 |
|
- |
private AttributeMetaData mAttributeMetaData; |
11 |
|
- |
|
12 |
|
- |
public AMDconverterPair( FormSendableDataConverter pDataConverter, AttributeMetaData pAttributeMetaData ) { |
13 |
|
- |
mDataConverter = pDataConverter; |
14 |
|
- |
mAttributeMetaData = pAttributeMetaData; |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
public FormSendableDataConverter getDataConverter() { |
18 |
|
- |
return mDataConverter; |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public AttributeMetaData getAttributeMetaData() { |
22 |
|
- |
return mAttributeMetaData; |
23 |
|
- |
} |
24 |
|
- |
|
25 |
|
- |
public boolean equals( Object o ) { |
26 |
|
- |
return (this == o) || ((o instanceof AMDconverterPair) && equals( (AMDconverterPair) o )); |
27 |
|
- |
} |
28 |
|
- |
|
29 |
|
- |
public boolean equals( AMDconverterPair them ) { |
30 |
|
- |
return (this == them) || ((them != null) // |
31 |
|
- |
&& equal( this.mAttributeMetaData, them.mAttributeMetaData ) // |
32 |
|
- |
); |
33 |
|
- |
} |
34 |
|
- |
|
35 |
|
- |
public int hashCode() { |
36 |
|
- |
return calcHashCode( mAttributeMetaData ); |
37 |
|
- |
} |
38 |
|
- |
|
39 |
|
- |
public String toString() { |
40 |
|
- |
return toStringBuilder( new StringBuilder().append( "AMDconverterPair-" ), 0 ).toString(); |
41 |
|
- |
} |
42 |
|
- |
|
43 |
|
- |
public StringBuilder toStringBuilder( StringBuilder pSB, int pDepth ) { |
44 |
|
- |
pSB.append( mDataConverter.getClass() ).append( "," ); |
45 |
|
- |
return mAttributeMetaData.toStringBuilder( pSB, pDepth ); |
46 |
|
- |
} |
47 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.server.support; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.forms.server.support.nonpublic.*; |
|
5 |
+ |
import org.litesoft.core.simpletypes.nonpublic.*; |
|
6 |
+ |
import org.litesoft.ui.def.nonpublic.support.*; |
|
7 |
+ |
|
|
8 |
+ |
public class AMDconverterPair extends EqualSupport { |
|
9 |
+ |
private FormSendableDataConverter mDataConverter; |
|
10 |
+ |
private AttributeMetaData mAttributeMetaData; |
|
11 |
+ |
|
|
12 |
+ |
public AMDconverterPair( FormSendableDataConverter pDataConverter, AttributeMetaData pAttributeMetaData ) { |
|
13 |
+ |
mDataConverter = pDataConverter; |
|
14 |
+ |
mAttributeMetaData = pAttributeMetaData; |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public FormSendableDataConverter getDataConverter() { |
|
18 |
+ |
return mDataConverter; |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public AttributeMetaData getAttributeMetaData() { |
|
22 |
+ |
return mAttributeMetaData; |
|
23 |
+ |
} |
|
24 |
+ |
|
|
25 |
+ |
public boolean equals( Object o ) { |
|
26 |
+ |
return (this == o) || ((o instanceof AMDconverterPair) && equals( (AMDconverterPair) o )); |
|
27 |
+ |
} |
|
28 |
+ |
|
|
29 |
+ |
public boolean equals( AMDconverterPair them ) { |
|
30 |
+ |
return (this == them) || ((them != null) // |
|
31 |
+ |
&& equal( this.mAttributeMetaData, them.mAttributeMetaData ) // |
|
32 |
+ |
); |
|
33 |
+ |
} |
|
34 |
+ |
|
|
35 |
+ |
public int hashCode() { |
|
36 |
+ |
return calcHashCode( mAttributeMetaData ); |
|
37 |
+ |
} |
|
38 |
+ |
|
|
39 |
+ |
public String toString() { |
|
40 |
+ |
return toStringBuilder( new StringBuilder().append( "AMDconverterPair-" ), 0 ).toString(); |
|
41 |
+ |
} |
|
42 |
+ |
|
|
43 |
+ |
public StringBuilder toStringBuilder( StringBuilder pSB, int pDepth ) { |
|
44 |
+ |
pSB.append( mDataConverter.getClass() ).append( "," ); |
|
45 |
+ |
return mAttributeMetaData.toStringBuilder( pSB, pDepth ); |
|
46 |
+ |
} |
|
47 |
+ |
} |