Package org.opensearch.common.collect
Class List
java.lang.Object
org.opensearch.common.collect.List
Deprecated, for removal: This API element is subject to removal in a future version.
Java 9 List
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionList()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> List<T>copyOf(Collection<? extends T> coll) Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.copyOf()method.static <T> List<T>of()Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.static <T> List<T>of(T e1) Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.static <T> List<T>of(T... entries) Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.static <T> List<T>of(T e1, T e2) Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.
-
Constructor Details
-
List
public List()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 Java9List.of()method.- Type Parameters:
T- theList's element type- Returns:
- an empty
List
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.- Type Parameters:
T- theList's element type- Parameters:
e1- the single element- Returns:
- a
Listcontaining the specified element
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.- Type Parameters:
T- theList's element type- Parameters:
e1- the single element- Returns:
- a
Listcontaining the specified element
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.of()method.- Type Parameters:
T- theList's element type- Parameters:
entries- the elements to be contained in the list- Returns:
- an unmodifiable list containing the specified elements.
-
copyOf
Deprecated, for removal: This API element is subject to removal in a future version.Delegates to the Java9List.copyOf()method.- Type Parameters:
T- theList's element type- Parameters:
coll- aCollectionfrom which elements are drawn, must be non-null- Returns:
- a
Listcontaining the elements of the givenCollection
-