private Iterable<Volume> collectVolumes(MachineType input) { ImmutableSet.Builder<Volume> volumes = ImmutableSet.builder(); for (MachineType.ScratchDisk disk : input.scratchDisks()) { volumes.add(new VolumeBuilder() .type(Volume.Type.LOCAL) .size(Float.valueOf(disk.diskGb())) .bootDevice(true) .durable(false).build()); } return volumes.build(); } }
private Iterable<Volume> collectVolumes(MachineType input) { ImmutableSet.Builder<Volume> volumes = ImmutableSet.builder(); for (MachineType.ScratchDisk disk : input.scratchDisks()) { volumes.add(new VolumeBuilder() .type(Volume.Type.LOCAL) .size(Float.valueOf(disk.diskGb())) .bootDevice(true) .durable(false).build()); } return volumes.build(); } }
private Iterable<Volume> collectVolumes(MachineType input) { ImmutableSet.Builder<Volume> volumes = ImmutableSet.builder(); for (MachineType.ScratchDisk disk : input.scratchDisks()) { volumes.add(new VolumeBuilder() .type(Volume.Type.LOCAL) .size(Float.valueOf(disk.diskGb())) .bootDevice(true) .durable(false).build()); } return volumes.build(); } }
private Iterable<Volume> collectVolumes(MachineType input) { ImmutableSet.Builder<Volume> volumes = ImmutableSet.builder(); for (MachineType.ScratchDisk disk : input.scratchDisks()) { volumes.add(new VolumeBuilder() .type(Volume.Type.LOCAL) .size(Float.valueOf(disk.diskGb())) .bootDevice(true) .durable(false).build()); } return volumes.build(); } }