@@ -276,33 +276,34 @@ public void track(@NonNull String eventName,
276276 }
277277
278278 /**
279- * Get the value of a Float live variable
279+ * Get the value of a Double live variable
280280 * @param variableKey the String key for the variable
281281 * @param userId the user ID
282282 * @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
284284 */
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 );
290290 }
291291
292292 /**
293- * Get the value of a Float live variable
293+ * Get the value of a Double live variable
294294 * @param variableKey the String key for the variable
295295 * @param userId the user ID
296296 * @param attributes a map of attributes about the user
297297 * @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
299299 */
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 ) {
304304 if (optimizely != null ) {
305- return optimizely .getVariableFloat (variableKey , userId , attributes , activateExperiment );
305+ return optimizely .getVariableDouble (variableKey , userId , attributes ,
306+ activateExperiment );
306307 } else {
307308 logger .warn ("Optimizely is not initialized, could not get live variable {} " +
308309 "for user {}" , variableKey , userId );
0 commit comments