java - How to iterate over LoadingCache google class -


i have loadingcache class this:

loadingcache<integer, list<parent>> parents 

where parent class has id, description, home, , nickname

i want print values inside parents object

i tried like:

parents.keys() 

but couldn't find method loodingcache object

you can use method asmap() instead:

  /**    * returns view of entries stored in cache thread-safe map. modifications made    * map directly affect cache.    */   concurrentmap<k, v> asmap(); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -