JRD SYSTEMS interview question

Can we use cusum objects in set and hashmap