public List < Command > removeFromList ( final UUID listId , final int startPosition , final int removeCount ) { final ListVersionChange change = increaseListVersion ( listId ) ; final RemoveFromList msg = new RemoveFromList ( listId , change , startPosition , removeCount ) ; final List < Command > commands = new ArrayList <> ( 1 ) ; commands . add ( msg ) ; return commands ; }
Creates the list with commands necessary to remove a object from a list .