Package org.opensearch.common.collect
Class Set
java.lang.Object
org.opensearch.common.collect.Set
Deprecated, for removal: This API element is subject to removal in a future version.
Java 9 Set
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionSet()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Java10Set.copyOfmethod.static <T> Set<T>of()Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9Set.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 Java9Set.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 Java9Set.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 Java9Set.of()method.
-
Constructor Details
-
Set
public Set()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9Set.of()method.- Type Parameters:
T- theSet's element type- Returns:
- an empty
Set
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9Set.of()method.- Type Parameters:
T- theSet's element type- Parameters:
e1- the single element- Returns:
- a
Setcontaining the specified element
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9Set.of()method.- Type Parameters:
T- theSet's element type- Parameters:
e1- the first elemente2- the second element- Returns:
- a
Setcontaining the specified element
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9Set.of()method.- Type Parameters:
T- theSet's element type- Parameters:
entries- the elements to be contained in the set- Returns:
- an unmodifiable set containing the specified elements.
-
copyOf
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java10Set.copyOfmethod.- Type Parameters:
T- theSet's element type- Parameters:
coll- aCollectionfrom which elements are drawn, must be non-null- Returns:
- a
Setcontaining the elements of the givenCollection
-