-
- All Implemented Interfaces:
public class CollectionUtils
The CollectionUtils.
- This contains helper functions to get information from a Collection.
-
-
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.
-
-
-
-