27
27
import com .gazbert .bxbot .exchange .api .ExchangeConfig ;
28
28
import com .gazbert .bxbot .exchange .api .NetworkConfig ;
29
29
import com .gazbert .bxbot .exchange .api .OtherConfig ;
30
- import com .google .common .base .MoreObjects ;
30
+ import lombok .Setter ;
31
+ import lombok .ToString ;
31
32
32
33
/**
33
34
* Exchange API Exchange config.
34
35
*
35
36
* @author gazbert
36
37
*/
38
+ @ Setter
39
+ @ ToString
37
40
public class ExchangeConfigImpl implements ExchangeConfig {
38
41
39
42
private String exchangeName ;
40
43
private String exchangeAdapter ;
41
- private AuthenticationConfig authenticationConfig ;
44
+
45
+ @ ToString .Exclude private AuthenticationConfig authenticationConfig ;
46
+
42
47
private NetworkConfig networkConfig ;
43
48
private OtherConfig otherConfig ;
44
49
@@ -80,24 +85,6 @@ public AuthenticationConfig getAuthenticationConfig() {
80
85
return authenticationConfig ;
81
86
}
82
87
83
- /**
84
- * Sets the authentication config.
85
- *
86
- * @param authenticationConfig authentication config.
87
- */
88
- public void setAuthenticationConfig (AuthenticationConfig authenticationConfig ) {
89
- this .authenticationConfig = authenticationConfig ;
90
- }
91
-
92
- /**
93
- * Sets the network config.
94
- *
95
- * @param networkConfig the network config.
96
- */
97
- public void setNetworkConfig (NetworkConfig networkConfig ) {
98
- this .networkConfig = networkConfig ;
99
- }
100
-
101
88
@ Override
102
89
public NetworkConfig getNetworkConfig () {
103
90
return networkConfig ;
@@ -107,24 +94,4 @@ public NetworkConfig getNetworkConfig() {
107
94
public OtherConfig getOtherConfig () {
108
95
return otherConfig ;
109
96
}
110
-
111
- /**
112
- * Sets the other config.
113
- *
114
- * @param otherConfig the other config.
115
- */
116
- public void setOtherConfig (OtherConfig otherConfig ) {
117
- this .otherConfig = otherConfig ;
118
- }
119
-
120
- @ Override
121
- public String toString () {
122
- return MoreObjects .toStringHelper (this )
123
- .add ("exchangeName" , exchangeName )
124
- .add ("exchangeAdapter" , exchangeAdapter )
125
- .add ("authenticationConfig" , "NOT SHOWN BY DESIGN" )
126
- .add ("networkConfig" , networkConfig )
127
- .add ("otherConfig" , otherConfig )
128
- .toString ();
129
- }
130
97
}
0 commit comments