Class CollectionUtils


  • public class CollectionUtils
    extends java.lang.Object
    Collection utilities class.
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T pickElement​(java.util.Collection<T> elements, int position)
      Returns a single element from a collection using the specified position.
      • Methods inherited from class java.lang.Object

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

      • CollectionUtils

        public CollectionUtils()
    • Method Detail

      • pickElement

        public static <T> T pickElement​(java.util.Collection<T> elements,
                                        int position)
        Returns a single element from a collection using the specified position.
        Parameters:
        elements - collection elements
        position - specified position
        Returns:
        element in the specified position