22
33import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
44import java .util .Objects ;
5+ import lombok .Generated ;
56import lombok .NonNull ;
67
78/**
@@ -92,6 +93,7 @@ public static <T> HookContextBuilder<T> builder() {
9293 return sharedContext .getFlagKey ();
9394 }
9495
96+ @ Generated
9597 public @ NonNull FlagValueType getType () {
9698 return sharedContext .getType ();
9799 }
@@ -117,6 +119,7 @@ public HookData getHookData() {
117119 return this .hookData ;
118120 }
119121
122+ @ Generated
120123 @ Override
121124 public boolean equals (Object o ) {
122125 if (o == null || getClass () != o .getClass ()) {
@@ -128,11 +131,13 @@ public boolean equals(Object o) {
128131 && Objects .equals (sharedContext , that .sharedContext );
129132 }
130133
134+ @ Generated
131135 @ Override
132136 public int hashCode () {
133137 return Objects .hash (ctx , hookData , sharedContext );
134138 }
135139
140+ @ Generated
136141 @ Override
137142 public String toString () {
138143 return "HookContext(flagKey=" + this .getFlagKey () + ", type=" + this .getType () + ", defaultValue="
@@ -151,6 +156,7 @@ void setCtx(@NonNull EvaluationContext ctx) {
151156 * @return new HookContext with updated flagKey or the same instance if unchanged
152157 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
153158 */
159+ @ Generated
154160 @ Deprecated
155161 public HookContext <T > withFlagKey (@ NonNull String flagKey ) {
156162 return Objects .equals (this .getFlagKey (), flagKey )
@@ -172,6 +178,7 @@ public HookContext<T> withFlagKey(@NonNull String flagKey) {
172178 * @return new HookContext with updated type or the same instance if unchanged
173179 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
174180 */
181+ @ Generated
175182 @ Deprecated
176183 public HookContext <T > withType (@ NonNull FlagValueType type ) {
177184 return this .getType () == type
@@ -193,6 +200,7 @@ public HookContext<T> withType(@NonNull FlagValueType type) {
193200 * @return new HookContext with updated defaultValue or the same instance if unchanged
194201 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
195202 */
203+ @ Generated
196204 @ Deprecated
197205 public HookContext <T > withDefaultValue (@ NonNull T defaultValue ) {
198206 return this .getDefaultValue () == defaultValue
@@ -214,6 +222,7 @@ public HookContext<T> withDefaultValue(@NonNull T defaultValue) {
214222 * @return new HookContext with updated ctx or the same instance if unchanged
215223 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
216224 */
225+ @ Generated
217226 @ Deprecated
218227 public HookContext <T > withCtx (@ NonNull EvaluationContext ctx ) {
219228 return this .ctx == ctx
@@ -235,6 +244,7 @@ public HookContext<T> withCtx(@NonNull EvaluationContext ctx) {
235244 * @return new HookContext with updated clientMetadata or the same instance if unchanged
236245 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
237246 */
247+ @ Generated
238248 @ Deprecated
239249 public HookContext <T > withClientMetadata (ClientMetadata clientMetadata ) {
240250 return this .getClientMetadata () == clientMetadata
@@ -256,6 +266,7 @@ public HookContext<T> withClientMetadata(ClientMetadata clientMetadata) {
256266 * @return new HookContext with updated providerMetadata or the same instance if unchanged
257267 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
258268 */
269+ @ Generated
259270 @ Deprecated
260271 public HookContext <T > withProviderMetadata (Metadata providerMetadata ) {
261272 return this .getProviderMetadata () == providerMetadata
@@ -277,6 +288,7 @@ public HookContext<T> withProviderMetadata(Metadata providerMetadata) {
277288 * @return new HookContext with updated hookData or the same instance if unchanged
278289 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
279290 */
291+ @ Generated
280292 @ Deprecated
281293 public HookContext <T > withHookData (HookData hookData ) {
282294 return this .hookData == hookData
@@ -297,6 +309,7 @@ public HookContext<T> withHookData(HookData hookData) {
297309 * @param <T> The flag type.
298310 * @deprecated HookContext is initialized by the SDK and passed to hooks. Users should not create new instances.
299311 */
312+ @ Generated
300313 @ Deprecated
301314 public static class HookContextBuilder <T > {
302315 private String flagKey ;
@@ -361,6 +374,7 @@ public HookContext<T> build() {
361374 this .hookData );
362375 }
363376
377+ @ Generated
364378 @ Override
365379 public String toString () {
366380 return "HookContext.HookContextBuilder(flagKey=" + this .flagKey + ", type=" + this .type + ", defaultValue="
0 commit comments