private static double totalShareWithRatio ( Collection < ? extends Schedulable > schedulables , double weightToShareRatio ) { double totalShare = 0 ; for ( Schedulable schedulable : schedulables ) { totalShare += shareWithRatio ( schedulable , weightToShareRatio ) ; } return totalShare ; }
Compute the total share of the schedulables given a weightToShareRatio