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

de.mklinger.qetcher.client.model.v1.builder.AvailableNodesBuilder Maven / Gradle / Ivy

The newest version!
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