Class ConditionHelper<T>
java.lang.Object
io.polyapi.plugin.service.template.ConditionHelper<T>
- Type Parameters:
T- The type of the Helper.
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<T>
Helper class that takes a BiPredicate and evaluates the parameters of the Helper.apply(Object, Options) method in it.
If true, the function result will be Options.fn(), otherwise Options.inverse()- See Also:
-
Helper
-
Constructor Summary
ConstructorsConstructorDescriptionConditionHelper(BiPredicate<T, com.github.jknack.handlebars.Options> predicate) -
Method Summary
-
Constructor Details
-
ConditionHelper
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.github.jknack.handlebars.Helper<T>- Throws:
IOException
-