com.godmonth.util.pressure.CompositeAlcohol Maven / Gradle / Ivy
package com.godmonth.util.pressure;
import java.util.List;
public class CompositeAlcohol implements Alcohol {
private List elements;
public void setElements(List elements) {
this.elements = elements;
}
@Override
public void begin() {
for (Alcohol alcohol : elements) {
alcohol.begin();
}
}
@Override
public void end() {
for (Alcohol alcohol : elements) {
alcohol.end();
}
}
}