com.hazelcast.util

## Class SetUtil

- java.lang.Object
- - com.hazelcast.util.SetUtil

-     public final class SetUtil
      extends Object

  Utility class for Sets.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### createHashSet

          public static <E> Set<E> createHashSet(int expectedMapSize)

      Utility method that creates an `HashSet` with its initialCapacity calculated to minimize rehash operations

    - #### createLinkedHashSet

          public static <E> Set<E> createLinkedHashSet(int expectedMapSize)

      Utility method that creates an `LinkedHashSet` with its initialCapacity calculated to minimize rehash operations

Copyright © 2020. All rights reserved.