Java hashmap hapus berdasarkan kondisi

hmap.values().removeIf(value -> value < threshold);
arne314