Class CollectionsHelper


  • public class CollectionsHelper
    extends Object
    • Constructor Detail

      • CollectionsHelper

        public CollectionsHelper()
    • Method Detail

      • rotateInto

        public static void rotateInto​(List<?> list,
                                      int fromPos,
                                      int toPos)
        rotates the item formPos into the toPos in list nudging (rotating) the rest of the elements
        Parameters:
        list -
        fromPos -
        toPos -