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
Post a Comment