com.dragome.forms.bindings.client.function.Functions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-form-bindings Show documentation
Show all versions of dragome-form-bindings Show documentation
Dragome SDK module: form bindings
package com.dragome.forms.bindings.client.function;
import java.util.Collection;
import com.dragome.forms.bindings.client.function.builder.ConverterBuilder;
import com.dragome.forms.bindings.client.function.builder.MutableConverterBuilder;
import com.dragome.forms.bindings.client.function.builder.ReducingBuilder;
import com.dragome.forms.bindings.client.function.builder.ReducingListBuilder;
import com.dragome.forms.bindings.client.value.MutableValueModel;
import com.dragome.forms.bindings.client.value.ValueModel;
import com.dragome.model.interfaces.list.ListModel;
/**
*
*/
public class Functions
{
public static ConverterBuilder convert(ValueModel source)
{
return new ConverterBuilder(source);
}
public static MutableConverterBuilder convert(MutableValueModel source)
{
return new MutableConverterBuilder(source);
}
public static ReducingBuilder computedFrom(ValueModel source, ValueModel... others)
{
return new ReducingBuilder(source, others);
}
public static ReducingBuilder computedFrom(Collection> models)
{
return new ReducingBuilder(models);
}
public static ReducingListBuilder computedFrom(ListModel source)
{
return new ReducingListBuilder(source);
}
}