Just wondering if HashSet.equals(anotherHashSet) runs in constant time (also with a ConcurrentHashSet as argument), which I\'m assuming it does for efficiency reasons. Can\'t see anything which mentio
If I have an instance of an HashSet after I ran it through Collections.unmodifiableSet(), is it thread-safe?
I have an (immutable) object, Group, which I am trying to use in a HashSet. However, I am getting odd results:
I have an array of ByteBuffers(which actually represent integers). I want to the separate unique & non unique ByteBuffers (i.e integers) in the array. Thus I am using HashSet of this type:
I have to create a course with some undergraduate and postgraduate students, then extract from the course all postgraduate students with “Ismael Bento” as their supervisor using the method getPostgr
What load factor should I use when I really know the maximum possible no of elements in a HashSet ? I had heard that the default load factor of 0.75 is recommended as it offers good performance trade-
I have in my code: public static Set<Long> workItemsForTasks = new HashSet<Long>(); It\'s a web application, and during the code the users can add new items to the map - and I add in th
I have a class Person which contains String firstName, lastName. I want to insert instances of this class into a List, but I don\'t want to insert duplicates.
I\'m making a hashset ADT in c for a homework assignment. I cannot figure out for the life of me why my logic isn\'t working for a function that counts clusters in a hashset.
What is the difference between them? I know that A LinkedHashSet is an ordered version of HashSet that