de.mklinger.qetcher.client.model.v1.builder.AvailabilityBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qetcher-client-bundle Show documentation
Show all versions of qetcher-client-bundle Show documentation
Qetcher Java client, OSGi bundle, minimal dependencies
package de.mklinger.qetcher.client.model.v1.builder;
import de.mklinger.qetcher.client.model.v1.Availability;
import de.mklinger.qetcher.client.model.v1.impl.AvailabilityImpl;
/**
* Created by Marius Heinzmann on 3/26/18.
*
* @author Marius Heinzmann - mheinzmann[at]mklinger[dot]de
*/
public class AvailabilityBuilder {
private String nodeId;
private String converterId;
public static AvailabilityBuilder of(final Availability availability) {
return new AvailabilityBuilder()
.nodeId(availability.getNodeId())
.converterId(availability.getConverterId());
}
public AvailabilityBuilder nodeId(final String nodeId) {
this.nodeId = nodeId;
return this;
}
public AvailabilityBuilder converterId(final String converterId) {
this.converterId = converterId;
return this;
}
public Availability build() {
return new AvailabilityImpl(this);
}
public String getNodeId() {
return nodeId;
}
public String getConverterId() {
return converterId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy