@@ -22,6 +22,9 @@ public class Currency {
22
22
@ JsonProperty ("standardDeviation" )
23
23
private Double standardDeviation ;
24
24
25
+ @ JsonProperty ("winsorizedAmount" )
26
+ private Double winsorizedAmount ;
27
+
25
28
public Currency setCurrency (String currency ) {
26
29
this .currency = currency ;
27
30
return this ;
@@ -66,6 +69,20 @@ public Double getStandardDeviation() {
66
69
return standardDeviation ;
67
70
}
68
71
72
+ public Currency setWinsorizedAmount (Double winsorizedAmount ) {
73
+ this .winsorizedAmount = winsorizedAmount ;
74
+ return this ;
75
+ }
76
+
77
+ /**
78
+ * The amount of revenue for this currency that was removed after capping purchase amounts to the
79
+ * 95th percentile.
80
+ */
81
+ @ javax .annotation .Nullable
82
+ public Double getWinsorizedAmount () {
83
+ return winsorizedAmount ;
84
+ }
85
+
69
86
@ Override
70
87
public boolean equals (Object o ) {
71
88
if (this == o ) {
@@ -79,13 +96,14 @@ public boolean equals(Object o) {
79
96
Objects .equals (this .currency , currency .currency ) &&
80
97
Objects .equals (this .revenue , currency .revenue ) &&
81
98
Objects .equals (this .mean , currency .mean ) &&
82
- Objects .equals (this .standardDeviation , currency .standardDeviation )
99
+ Objects .equals (this .standardDeviation , currency .standardDeviation ) &&
100
+ Objects .equals (this .winsorizedAmount , currency .winsorizedAmount )
83
101
);
84
102
}
85
103
86
104
@ Override
87
105
public int hashCode () {
88
- return Objects .hash (currency , revenue , mean , standardDeviation );
106
+ return Objects .hash (currency , revenue , mean , standardDeviation , winsorizedAmount );
89
107
}
90
108
91
109
@ Override
@@ -96,6 +114,7 @@ public String toString() {
96
114
sb .append (" revenue: " ).append (toIndentedString (revenue )).append ("\n " );
97
115
sb .append (" mean: " ).append (toIndentedString (mean )).append ("\n " );
98
116
sb .append (" standardDeviation: " ).append (toIndentedString (standardDeviation )).append ("\n " );
117
+ sb .append (" winsorizedAmount: " ).append (toIndentedString (winsorizedAmount )).append ("\n " );
99
118
sb .append ("}" );
100
119
return sb .toString ();
101
120
}
0 commit comments