de.mklinger.qetcher.client.model.v1.builder.AvailableNodesBuilder 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 java.util.List;
import de.mklinger.qetcher.client.model.v1.AvailableNode;
import de.mklinger.qetcher.client.model.v1.AvailableNodes;
import de.mklinger.qetcher.client.model.v1.impl.AvailableNodesImpl;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class AvailableNodesBuilder {
private List availableNodes;
public static AvailableNodesBuilder of(final AvailableNodes availableNodes) {
return new AvailableNodesBuilder()
.availableNodes(availableNodes.getAvailableNodes());
}
public List getAvailableNodes() {
return availableNodes;
}
public AvailableNodesBuilder availableNodes(final List availableNodes) {
this.availableNodes = availableNodes;
return this;
}
public AvailableNodes build() {
return new AvailableNodesImpl(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy