java - Why should we have to convert HashMap<String, Object> to HashMap<String,Object>.toMap -


i developing android app , stuck something. using loopback backend framework, in have pass hashmap, android studio showing me error should convert tomap. below piece of code, have google doesn't find solution of why should have use tomap.

hashmap<string,object>vehicleinfoobj = new hashmap<>();  customerquoterepository.createcustomerquote(ctx, vehicleinfo.tomap(), customerquote.tomap(), new objectcallback<customerquote>() {         @override         public void onbefore() {             super.onbefore();             mainactivity.startprogressbar(mainactivity.progressbar);         }          @override         public void onsuccess(customerquote object) {             super.onsuccess(object);          }           @override         public void onerror(throwable t) {             super.onerror(t);         }          @override         public void onfinally() {             super.onfinally();             mainactivity.startprogressbar(mainactivity.progressbar);         }     });  } 

there no tomap() method in java map api. there 1 in loopback-sdk e.g. here. signature of createcustomerquote expects map<string, ? extends object> - that's why have use tomap().


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -