net.sixpointsix.carpo.casedata.model.builder.CarpoCaseBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carpo-case-data Show documentation
Show all versions of carpo-case-data Show documentation
Case data library for carpo core
package net.sixpointsix.carpo.casedata.model.builder;
import net.sixpointsix.carpo.casedata.model.CarpoCase;
import net.sixpointsix.carpo.casedata.model.immutable.ImmutableCarpoCase;
import net.sixpointsix.carpo.common.model.AbstractPropertyEntityBuilder;
import net.sixpointsix.carpo.common.model.CarpoPropertyEntity;
/**
* Build a carpo case
*
* @author Andrew Tarry
* @since 0.0.1
*/
public class CarpoCaseBuilder extends AbstractPropertyEntityBuilder {
public CarpoCaseBuilder() {
}
public CarpoCaseBuilder(CarpoPropertyEntity entity) {
super(entity);
}
/**
* {@inheritDoc}
*/
@Override
public CarpoCase build() {
return new ImmutableCarpoCase(carpoId, timestamp, properties);
}
}