com.logicommerce.sdk.definition.implementations.WarehouseValueDefinitionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for developing Logicommerce plugins.
package com.logicommerce.sdk.definition.implementations;
import com.logicommerce.sdk.definition.WarehouseValueDefinition;
/**
* WarehouseValueDefinitionImpl class.
*
* @author Logicommerce
* @since 1.0.16
*/
public class WarehouseValueDefinitionImpl implements WarehouseValueDefinition {
private Integer id;
/**
* Constructor for WarehouseValueDefinitionImpl.
*
* @param id a {@link java.lang.Integer} object
*/
public WarehouseValueDefinitionImpl(Integer id) {
this.id = id;
}
/** {@inheritDoc} */
@Override
public Integer getId() {
return id;
}
public static class Builder {
private T parentBuilder;
private Integer id;
public Builder() {
}
public Builder(T parentBuilder) {
this();
this.parentBuilder = parentBuilder;
}
public Builder id(Integer id) {
this.id = id;
return this;
}
public WarehouseValueDefinition build() {
return new WarehouseValueDefinitionImpl(id);
}
public T done() {
return parentBuilder;
}
}
}