We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
like caffeine getAllPresent
Map<K, V> getAllPresent(Iterable<? extends K> keys)
I tried to write a method, is this method feasible?🤔
public List<V> getAllPresent(List<K> keys) { List<V> result = Collections.emptyList(); if (keys != null && !keys.isEmpty()) { result = new ArrayList<V>(keys.size()); for (K key : keys) { V value = get(key); if (value != null) { result.add(get(key)); } } } return result; }
Thanks for your reply.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
like caffeine getAllPresent
I tried to write a method, is this method feasible?🤔
Thanks for your reply.
The text was updated successfully, but these errors were encountered: