static List toModelShareDistribution()

in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/Translator.java [71:80]


    static List<software.amazon.batch.schedulingpolicy.ShareAttributes> toModelShareDistribution(
            final List<ShareAttributes> shareAttributesList) {
        return shareAttributesList.stream()
                .map(s -> software.amazon.batch.schedulingpolicy.ShareAttributes
                        .builder()
                        .shareIdentifier(s.shareIdentifier())
                        .weightFactor(s.weightFactor().doubleValue())
                        .build())
                .collect(Collectors.toList());
    }