All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sixpointsix.carpo.casedata.model.builder.CarpoCaseBuilder Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy