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_TYPESHELPER_TAG_TYPES, NO_SUPPORTED_HASH_KEYSconfiguration| Constructor and Description |
|---|
EqualsHelper()
Tests equality.
|
EqualsHelper(boolean testInequality) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Options options)
Execute the helper.
|
protected com.google.common.base.Optional<Set<String>> |
getSupportedHashKeys() |
allowedTagTypesnumberOfRequiredHashEntries, numberOfRequiredParameters, validateappend, getHashValue, init, isSection, isUnescapeVariable, isVariablegetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic EqualsHelper()
public EqualsHelper(boolean testInequality)
testInequality - public void execute(Options options)
Helperprotected com.google.common.base.Optional<Set<String>> getSupportedHashKeys()
getSupportedHashKeys in class BasicHelperCopyright © 2015. All rights reserved.