public final class SetUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
static <E> Set<E> | 
createHashSet(int expectedMapSize)
Utility method that creates an  
HashSet with its initialCapacity calculated
 to minimize rehash operations | 
static <E> Set<E> | 
createLinkedHashSet(int expectedMapSize)
Utility method that creates an  
LinkedHashSet with its initialCapacity calculated
 to minimize rehash operations | 
public static <E> Set<E> createHashSet(int expectedMapSize)
HashSet with its initialCapacity calculated
 to minimize rehash operationspublic static <E> Set<E> createLinkedHashSet(int expectedMapSize)
LinkedHashSet with its initialCapacity calculated
 to minimize rehash operationsCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.