Class Set

java.lang.Object
org.opensearch.common.collect.Set

@Deprecated(forRemoval=true) public class Set extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Java 9 Set
Opensearch.internal:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Set()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Set<T>
    copyOf(Collection<? extends T> coll)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delegates to the Java10 Set.copyOf method.
    static <T> Set<T>
    of()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delegates to the Java9 Set.of() method.
    static <T> Set<T>
    of(T e1)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delegates to the Java9 Set.of() method.
    static <T> Set<T>
    of(T... entries)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delegates to the Java9 Set.of() method.
    static <T> Set<T>
    of(T e1, T e2)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delegates to the Java9 Set.of() method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Set

      public Set()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • of

      public static <T> Set<T> of()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delegates to the Java9 Set.of() method.
      Type Parameters:
      T - the Set's element type
      Returns:
      an empty Set
    • of

      public static <T> Set<T> of(T e1)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delegates to the Java9 Set.of() method.
      Type Parameters:
      T - the Set's element type
      Parameters:
      e1 - the single element
      Returns:
      a Set containing the specified element
    • of

      public static <T> Set<T> of(T e1, T e2)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delegates to the Java9 Set.of() method.
      Type Parameters:
      T - the Set's element type
      Parameters:
      e1 - the first element
      e2 - the second element
      Returns:
      a Set containing the specified element
    • of

      @SafeVarargs public static <T> Set<T> of(T... entries)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delegates to the Java9 Set.of() method.
      Type Parameters:
      T - the Set's element type
      Parameters:
      entries - the elements to be contained in the set
      Returns:
      an unmodifiable set containing the specified elements.
    • copyOf

      public static <T> Set<T> copyOf(Collection<? extends T> coll)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delegates to the Java10 Set.copyOf method.
      Type Parameters:
      T - the Set's element type
      Parameters:
      coll - a Collection from which elements are drawn, must be non-null
      Returns:
      a Set containing the elements of the given Collection