Class ImmutableHashSet<T>

  • Type Parameters:
    T - the element type
    All Implemented Interfaces:
    Serializable, Iterable<T>, Collection<T>, Set<T>

    public final class ImmutableHashSet<T>
    extends ImmutableSet<T>
    implements Serializable
    Immutable Set implementation. This implementation uses open addressing with linear probing and a table size of the nearest power of two so that load factor is below 0.75. The implementation is inspired by Guava's ImmutableSet implementation.
    Author:
    Jozef Hartinger
    See Also:
    Serialized Form