Class CollectionUtils

  • All Implemented Interfaces:

    
    public class CollectionUtils
    
                        

    The CollectionUtils.

    • This contains helper functions to get information from a Collection.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

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

      • CollectionUtils

        CollectionUtils()
    • 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)