de.mklinger.qetcher.client.model.v1.builder.AvailableConversionsBuilder 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.AvailableConversion;
import de.mklinger.qetcher.client.model.v1.AvailableConversions;
import de.mklinger.qetcher.client.model.v1.impl.AvailableConversionsImpl;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class AvailableConversionsBuilder {
private List availableConversions;
public static AvailableConversionsBuilder of(final AvailableConversions availableConversions) {
return new AvailableConversionsBuilder()
.availableConversions(availableConversions.getAvailableConversions());
}
public AvailableConversionsBuilder availableConversions(final List availableConversions) {
this.availableConversions = availableConversions;
return this;
}
public List getAvailableConversions() {
return availableConversions;
}
public AvailableConversions build() {
return new AvailableConversionsImpl(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy