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

com.dragome.forms.bindings.client.function.Functions Maven / Gradle / Ivy

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

}