public final class SetUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static <E> Set<E> | createHashSet(int expectedMapSize)Utility method that creates an  HashSetwith its initialCapacity calculated
 to minimize rehash operations | 
| static <E> Set<E> | createLinkedHashSet(int expectedMapSize)Utility method that creates an  LinkedHashSetwith 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 © 2022 Hazelcast, Inc.. All Rights Reserved.