Introduction
- Set interface implemented using a hash table
- doesn't guarantee to iterate the elements in any specific order
- constant time access to elements assuming good hash
function
HashSet class Constructors
HashSetResult | Constructor | Description |
---|---|---|
hset = | new HashSet | Creates a new HashSet with default initial capacity 16 and load factor 0.75. |
hset = | new HashSet | Creates a new HashSet with the specified initial int capacity. |
hset = | new HashSet | Creates a new HashSet with the specified capacity which will not exceed a specified (float) load factor. |
hset = | new HashSet | Creates a new HashSet with elements from the Collection coll |
No comments:
Post a Comment