public class EqualsHelper extends BasicSectionHelper
Object.equals(Object)
).
{{#isEq item.status Status.ACTIVE}} It's equal! {{/isEq}}If only one param is defined, the object at the top of the context stack is used:
{{#with foo}} {{#isEq Status.ACTIVE}} It's equal! {{/isEq}} {{/with}}If any object is null, the block is not rendered.
SECTION_TYPES
HELPER_TAG_TYPES
configuration
Constructor and Description |
---|
EqualsHelper()
Tests equality.
|
EqualsHelper(boolean testInequality) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Options options)
Execute the helper.
|
allowedTagTypes
getRequiredHashKeys, getSupportedHashKeys, numberOfRequiredHashEntries, numberOfRequiredParameters, validate
append, convertAndAppend, convertValue, init, isSection, isUnescapeVariable, isVariable
checkNotInitialized, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
Copyright © 2017. All rights reserved.