Manhattan Associates interview question

When would you use a HashMap vs an ArrayList?