2
2
3
3
import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
4
4
import java .util .Objects ;
5
+ import lombok .Generated ;
5
6
import lombok .NonNull ;
6
7
7
8
/**
@@ -92,6 +93,7 @@ public static <T> HookContextBuilder<T> builder() {
92
93
return sharedContext .getFlagKey ();
93
94
}
94
95
96
+ @ Generated
95
97
public @ NonNull FlagValueType getType () {
96
98
return sharedContext .getType ();
97
99
}
@@ -117,6 +119,7 @@ public HookData getHookData() {
117
119
return this .hookData ;
118
120
}
119
121
122
+ @ Generated
120
123
@ Override
121
124
public boolean equals (Object o ) {
122
125
if (o == null || getClass () != o .getClass ()) {
@@ -128,11 +131,13 @@ public boolean equals(Object o) {
128
131
&& Objects .equals (sharedContext , that .sharedContext );
129
132
}
130
133
134
+ @ Generated
131
135
@ Override
132
136
public int hashCode () {
133
137
return Objects .hash (ctx , hookData , sharedContext );
134
138
}
135
139
140
+ @ Generated
136
141
@ Override
137
142
public String toString () {
138
143
return "HookContext(flagKey=" + this .getFlagKey () + ", type=" + this .getType () + ", defaultValue="
@@ -151,6 +156,7 @@ void setCtx(@NonNull EvaluationContext ctx) {
151
156
* @return new HookContext with updated flagKey or the same instance if unchanged
152
157
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
153
158
*/
159
+ @ Generated
154
160
@ Deprecated
155
161
public HookContext <T > withFlagKey (@ NonNull String flagKey ) {
156
162
return Objects .equals (this .getFlagKey (), flagKey )
@@ -172,6 +178,7 @@ public HookContext<T> withFlagKey(@NonNull String flagKey) {
172
178
* @return new HookContext with updated type or the same instance if unchanged
173
179
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
174
180
*/
181
+ @ Generated
175
182
@ Deprecated
176
183
public HookContext <T > withType (@ NonNull FlagValueType type ) {
177
184
return this .getType () == type
@@ -193,6 +200,7 @@ public HookContext<T> withType(@NonNull FlagValueType type) {
193
200
* @return new HookContext with updated defaultValue or the same instance if unchanged
194
201
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
195
202
*/
203
+ @ Generated
196
204
@ Deprecated
197
205
public HookContext <T > withDefaultValue (@ NonNull T defaultValue ) {
198
206
return this .getDefaultValue () == defaultValue
@@ -214,6 +222,7 @@ public HookContext<T> withDefaultValue(@NonNull T defaultValue) {
214
222
* @return new HookContext with updated ctx or the same instance if unchanged
215
223
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
216
224
*/
225
+ @ Generated
217
226
@ Deprecated
218
227
public HookContext <T > withCtx (@ NonNull EvaluationContext ctx ) {
219
228
return this .ctx == ctx
@@ -235,6 +244,7 @@ public HookContext<T> withCtx(@NonNull EvaluationContext ctx) {
235
244
* @return new HookContext with updated clientMetadata or the same instance if unchanged
236
245
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
237
246
*/
247
+ @ Generated
238
248
@ Deprecated
239
249
public HookContext <T > withClientMetadata (ClientMetadata clientMetadata ) {
240
250
return this .getClientMetadata () == clientMetadata
@@ -256,6 +266,7 @@ public HookContext<T> withClientMetadata(ClientMetadata clientMetadata) {
256
266
* @return new HookContext with updated providerMetadata or the same instance if unchanged
257
267
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
258
268
*/
269
+ @ Generated
259
270
@ Deprecated
260
271
public HookContext <T > withProviderMetadata (Metadata providerMetadata ) {
261
272
return this .getProviderMetadata () == providerMetadata
@@ -277,6 +288,7 @@ public HookContext<T> withProviderMetadata(Metadata providerMetadata) {
277
288
* @return new HookContext with updated hookData or the same instance if unchanged
278
289
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
279
290
*/
291
+ @ Generated
280
292
@ Deprecated
281
293
public HookContext <T > withHookData (HookData hookData ) {
282
294
return this .hookData == hookData
@@ -297,6 +309,7 @@ public HookContext<T> withHookData(HookData hookData) {
297
309
* @param <T> The flag type.
298
310
* @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
299
311
*/
312
+ @ Generated
300
313
@ Deprecated
301
314
public static class HookContextBuilder <T > {
302
315
private String flagKey ;
@@ -361,6 +374,7 @@ public HookContext<T> build() {
361
374
this .hookData );
362
375
}
363
376
377
+ @ Generated
364
378
@ Override
365
379
public String toString () {
366
380
return "HookContext.HookContextBuilder(flagKey=" + this .flagKey + ", type=" + this .type + ", defaultValue="
0 commit comments