Hi there,
I have a custom
java object with the attribute - (
String name) used in the equals/hashCode method for determining the uniqueness.
Accordingly I build a Hashset of unique objects of the Custom class.
This hashset is a collection of the unique custom objects. What I want to grab is String array of only the unique identifier (i.e. attribute name).
How can I go about getting the same in a more easier way. Currently what i do is create a String array of the size of the hashset and then get a iterator to the hashset , traverse the elements, cast each element object , get the attribute and then add it to String array
Thanks,