in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java [49:59]
static List<ShareAttributes> toShareDistribution(
final List<software.amazon.batch.schedulingpolicy.ShareAttributes> shareAttributesList) {
return shareAttributesList.stream()
.map(s -> ShareAttributes.builder()
.shareIdentifier(s.getShareIdentifier() != null
? s.getShareIdentifier() : null)
.weightFactor(s.getWeightFactor() != null
? s.getWeightFactor().floatValue() : null)
.build())
.collect(Collectors.toList());
}