class CompositePartitionTransformation implements PartitionTransformation {

  @Override
  public Partition transform(Partition partition) {
    Partition transformedPartition = partition;
    for (PartitionTransformation partitionTransformation : partitionTransformations) {
      transformedPartition = partitionTransformation.transform(transformedPartition);
    }
    return transformedPartition;
  }

  public  CompositePartitionTransformation(List<PartitionTransformation> partitionTransformations);

}