@@ -276,33 +276,34 @@ public void track(@NonNull String eventName,
276
276
}
277
277
278
278
/**
279
- * Get the value of a Float live variable
279
+ * Get the value of a Double live variable
280
280
* @param variableKey the String key for the variable
281
281
* @param userId the user ID
282
282
* @param activateExperiment the flag denoting whether to activate an experiment or not
283
- * @return Float value of the live variable
283
+ * @return Double value of the live variable
284
284
*/
285
- public @ Nullable Float getVariableFloat (@ NonNull String variableKey ,
286
- @ NonNull String userId ,
287
- boolean activateExperiment ) {
288
- return getVariableFloat (variableKey , userId , Collections .<String , String >emptyMap (),
289
- activateExperiment );
285
+ public @ Nullable Double getVariableDouble (@ NonNull String variableKey ,
286
+ @ NonNull String userId ,
287
+ boolean activateExperiment ) {
288
+ return getVariableDouble (variableKey , userId , Collections .<String , String >emptyMap (),
289
+ activateExperiment );
290
290
}
291
291
292
292
/**
293
- * Get the value of a Float live variable
293
+ * Get the value of a Double live variable
294
294
* @param variableKey the String key for the variable
295
295
* @param userId the user ID
296
296
* @param attributes a map of attributes about the user
297
297
* @param activateExperiment the flag denoting whether to activate an experiment or not
298
- * @return Float value of the live variable
298
+ * @return Double value of the live variable
299
299
*/
300
- public @ Nullable Float getVariableFloat (@ NonNull String variableKey ,
301
- @ NonNull String userId ,
302
- @ NonNull Map <String , String > attributes ,
303
- boolean activateExperiment ) {
300
+ public @ Nullable Double getVariableDouble (@ NonNull String variableKey ,
301
+ @ NonNull String userId ,
302
+ @ NonNull Map <String , String > attributes ,
303
+ boolean activateExperiment ) {
304
304
if (optimizely != null ) {
305
- return optimizely .getVariableFloat (variableKey , userId , attributes , activateExperiment );
305
+ return optimizely .getVariableDouble (variableKey , userId , attributes ,
306
+ activateExperiment );
306
307
} else {
307
308
logger .warn ("Optimizely is not initialized, could not get live variable {} " +
308
309
"for user {}" , variableKey , userId );
0 commit comments