SailPoint Technologies interview question

Can we make custom object as key to hashmap?