anyMatch

  • returns boolean
f=map.entrySet().stream().anyMatch(e->e.getValue()>1);
//this expression checks if any value inside the hashmap is greater than 1
Edit this page on GitHub