Package com.theoplayer.android.api.util
Class CollectionUtils
-
- All Implemented Interfaces:
public class CollectionUtils
The CollectionUtils.
- This contains helper functions to get information from a Collection.
-
-
Constructor Summary
Constructors Constructor Description CollectionUtils()
-
Method Summary
Modifier and Type Method Description static <V> V
getFromCollectionByIndex(@NonNull() Collection<V> collection, int index)
The n-th element in the iterator, where n is the provided index. -
-
Method Detail
-
getFromCollectionByIndex
@NonNull() static <V> V getFromCollectionByIndex(@NonNull() Collection<V> collection, int index)
The n-th element in the iterator, where n is the provided index.
- Parameters:
collection
- The collection from which the element should be retrieved.index
- The position of the object you want to retrieve from the collection.- Returns:
The object, at position 'index' inside the collection. (NonNull)
-
-
-
-