src/infinity/ecs/scheduling/AdvancedRRScheduler.java
/**
     * Returns the lists that have a minimal size
     * @param lists
     * @return 
     */
Returns the lists that have a minimal size
@param lists
@return
Returns the lists that have a minimal size @param lists @return
private List<ArrayList<EntitySystem>> smallestLists(List<ArrayList<EntitySystem>> lists) {
	List<ArrayList<EntitySystem>> resultList = new ArrayList<>();
	int minSize = lists.get(0).size();
	for(ArrayList<EntitySystem> list : lists) {
	    int tempListSize = list.size();
	    if(tempListSize == minSize)
		resultList.add(list);
	    if(tempListSize < minSize) {
		resultList.clear();
		minSize = tempListSize;
		resultList.add(list);
	    }
	}    
	return resultList;
    }
private List < ArrayList < EntitySystem > > smallestLists ( List < ArrayList < EntitySystem > > lists ) { List < ArrayList < EntitySystem > > resultList = new ArrayList < > ( ) ; int minSize = lists . get ( 0 ) . size ( ) ; for ( ArrayList < EntitySystem > list : lists ) { int tempListSize = list . size ( ) ; if ( tempListSize == minSize ) resultList . add ( list ) ; if ( tempListSize < minSize ) { resultList . clear ( ) ; minSize = tempListSize ; resultList . add ( list ) ; } } return resultList ; }
Returns the lists that have a minimal size
 @param lists
 @return
Returns the lists that have a minimal size @param lists @return