private static double totalShareWithRatio(
      Collection<? extends Schedulable> schedulables,
      double weightToShareRatio) {
    double totalShare = 0;
    for (Schedulable schedulable : schedulables) {
      totalShare += shareWithRatio(schedulable, weightToShareRatio);
    }
    return totalShare;
  }
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
@param schedulables the list of schedulables to compute the share for
@param weightToShareRatio the weightToShareRatio to compute it for
@return the total share of all the schedulables for a given
weightToShareRatio