You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core-api/src/main/java/com/optimizely/ab/Optimizely.java
+51-2Lines changed: 51 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -372,7 +372,10 @@ public void track(@Nonnull String eventName,
372
372
* @return True if the feature is enabled.
373
373
* False if the feature is disabled.
374
374
* False if the feature is not found.
375
+
*
376
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -389,7 +392,10 @@ public Boolean isFeatureEnabled(@Nonnull String featureKey,
389
392
* @return True if the feature is enabled.
390
393
* False if the feature is disabled.
391
394
* False if the feature is not found.
395
+
*
396
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -494,7 +505,12 @@ public Boolean getFeatureVariableBoolean(@Nonnull String featureKey,
494
505
* @param attributes The user's attributes.
495
506
* @return The Boolean value of the boolean single variable feature.
496
507
* Null if the feature or variable could not be found.
508
+
*
509
+
*
510
+
*
511
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -518,7 +534,10 @@ public Boolean getFeatureVariableBoolean(@Nonnull String featureKey,
518
534
* @param userId The ID of the user.
519
535
* @return The Double value of the double single variable feature.
520
536
* Null if the feature or variable could not be found.
537
+
*
538
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -535,7 +554,10 @@ public Double getFeatureVariableDouble(@Nonnull String featureKey,
535
554
* @param attributes The user's attributes.
536
555
* @return The Double value of the double single variable feature.
537
556
* Null if the feature or variable could not be found.
557
+
*
558
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -567,7 +589,10 @@ public Double getFeatureVariableDouble(@Nonnull String featureKey,
567
589
* @param userId The ID of the user.
568
590
* @return The Integer value of the integer single variable feature.
569
591
* Null if the feature or variable could not be found.
592
+
*
593
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -584,7 +609,10 @@ public Integer getFeatureVariableInteger(@Nonnull String featureKey,
584
609
* @param attributes The user's attributes.
585
610
* @return The Integer value of the integer single variable feature.
586
611
* Null if the feature or variable could not be found.
612
+
*
613
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -617,7 +645,10 @@ public Integer getFeatureVariableInteger(@Nonnull String featureKey,
617
645
* @param userId The ID of the user.
618
646
* @return The String value of the string single variable feature.
619
647
* Null if the feature or variable could not be found.
648
+
*
649
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -634,7 +665,10 @@ public String getFeatureVariableString(@Nonnull String featureKey,
634
665
* @param attributes The user's attributes.
635
666
* @return The String value of the string single variable feature.
636
667
* Null if the feature or variable could not be found.
668
+
*
669
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -657,7 +691,10 @@ public String getFeatureVariableString(@Nonnull String featureKey,
657
691
* @param userId The ID of the user.
658
692
* @return An OptimizelyJSON instance for the JSON variable value.
659
693
* Null if the feature or variable could not be found.
694
+
*
695
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -674,7 +711,10 @@ public OptimizelyJSON getFeatureVariableJSON(@Nonnull String featureKey,
674
711
* @param attributes The user's attributes.
675
712
* @return An OptimizelyJSON instance for the JSON variable value.
676
713
* Null if the feature or variable could not be found.
714
+
*
715
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
* @return An OptimizelyJSON instance for all variable values.
826
866
* Null if the feature could not be found.
867
+
*
868
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -839,7 +882,10 @@ public OptimizelyJSON getAllFeatureVariables(@Nonnull String featureKey,
839
882
* @param attributes The user's attributes.
840
883
* @return An OptimizelyJSON instance for all variable values.
841
884
* Null if the feature could not be found.
885
+
*
886
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -922,7 +968,10 @@ public OptimizelyJSON getAllFeatureVariables(@Nonnull String featureKey,
922
968
* @param attributes The user's attributes.
923
969
* @return List of the feature keys that are enabled for the user if the userId is empty it will
924
970
* return Empty List.
971
+
*
972
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -1034,7 +1083,7 @@ public Variation getVariation(@Nonnull String experimentKey,
1034
1083
* then the forcedVariation for that experiment is removed.
1035
1084
* @return boolean A boolean value that indicates if the set completed successfully.
1036
1085
*
1037
-
* @deprecated use {@link OptimizelyUserContext#setForcedDecision(String, String, String)} instead
1086
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
@@ -1068,7 +1117,7 @@ public boolean setForcedVariation(@Nonnull String experimentKey,
1068
1117
* @return The variation the user was bucketed into. This value can be null if the
1069
1118
* forced variation fails.
1070
1119
*
1071
-
* @deprecated use {@link OptimizelyUserContext#getForcedDecision(String, String)} instead
1120
+
* @deprecated use __decide__ API instead. Refer to [the migration guide] (https://docs.developers.optimizely.com/full-stack/v4.0/docs/migrate-from-older-versions-java)
0 commit comments