com.dragome.forms.bindings.client.condition.ConditionHolder 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.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);
}
}