Java Tutorial Java HashSet
Basic
- Add values to HashSet in Java
- Check if a particular element exists in HashSet in Java
- Get Size of HashSet in Java
Convert
- Convert set to an array in Java
- Copy all elements of HashSet to an Object Array in Java
- Get Synchronized Set from HashSet in Java
- Convert an ArrayList to HashSet in Java
- Create a weak HashSet that element stored in the WeakHashSet might be garbage collected in Java
Custom
- Create a Concurrent hash set that allows the lock array to be resized in Java
- Create a coarse-grained hash set in Java
- Create an memory-efficient hash set in Java
- Implement a HashSet where the objects given are stored in weak references in Java
Search
Iterate
Remove
- Remove all elements from HashSet in Java
- Remove element from HashSet in Java
- Remove specified element from HashSet in Java