Skip to content

Instantly share code, notes, and snippets.

@wburns
Created August 6, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wburns/c3d3d95483d35be4b8c6 to your computer and use it in GitHub Desktop.
Save wburns/c3d3d95483d35be4b8c6 to your computer and use it in GitHub Desktop.
public static <K> CloseableIteratorSet<K> keySet(Cache<K, ?> cache) {
return cache.keySet();
}
public static <V> CloseableIteratorCollection<V> values(Cache<?, V> cache) {
return cache.values();
}
public static <K, V> CloseableIteratorSet<Map.Entry<K, V>> entrySet(Cache<K, V> cache) {
return cache.entrySet();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment