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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -