title: How to add new unique element to List
body: <p>I have a List of 100000 Objects. And its unique list. I want a add a new object to it. But the condition to add is it should be unique meaning, if the new element is already in the list, should not add to the list and should throw exception. Please let me know if there is idea. </p>