class Details{ String name; String age; String email; String location; }
1) If there is List of Details as in List how
List
Besides of using a hash as propposed by @OmG, you could also use a TreeSet with the key being a concatenation of the unique fields, also using a separator between them.
A Set only admits unique keys.
Set