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

com.dragome.forms.bindings.client.condition.ConditionHolder Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
package com.dragome.forms.bindings.client.condition;

import com.dragome.forms.bindings.client.value.ValueHolder;
import com.dragome.forms.bindings.client.value.ValueModel;

/**
 * A simple ValueHolder>Boolean< that implements Condition.
 */
public class ConditionHolder extends ValueHolder implements Condition
{
	public Condition and(ValueModel condition, ValueModel... others)
	{
		return Conditions.and(this, condition, others);
	}

	public Condition or(ValueModel condition, ValueModel... others)
	{
		return Conditions.or(this, condition, others);
	}

	public Condition not()
	{
		return Conditions.isNot(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy