Class Sets

java.lang.Object
io.quarkus.arc.impl.Sets

public final class Sets extends Object
  • Method Details

    • of

      @SafeVarargs public static <E> Set<E> of(E... elements)
      Unlike Set.of(Object...) this method does not throw an IllegalArgumentException if there are duplicate elements.
      Type Parameters:
      E -
      Parameters:
      elements -
      Returns:
      the set
    • singletonHashSet

      public static <E> HashSet<E> singletonHashSet(E element)