Class SetOf<T>

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

    public final class SetOf<T>
    extends SetEnvelope<T>
    Iterable as Set based on HashSet.

    There is no thread-safety guarantee.

    Since:
    0.49.2
    • Constructor Detail

      • SetOf

        @SafeVarargs
        public SetOf​(T... array)
        Ctor.
        Parameters:
        array - An array of some elements
      • SetOf

        public SetOf​(Iterable<? extends T> src)
        Ctor.
        Parameters:
        src - An Iterable