@Immutable public final class NullData extends PrimitiveData
Important: This class may only be used in implementing plugins (e.g. functions, directives).
NullData is only used by Tofu, jbcsrc internally represents null as null. Ideally,
Tofu would switch to using null also, but that may be infeasible.
| Modifier and Type | Field and Description |
|---|---|
static NullData |
INSTANCE
Static singleton instance of NullData.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compares this value against another for equality in the sense of the '==' operator of Soy.
|
int |
hashCode() |
boolean |
toBoolean()
Deprecated.
|
String |
toString()
This was a required method in the old SoyData interface.
|
rendercoerceToBoolean, coerceToString, createFromExistingDatabooleanValue, floatValue, integerValue, longValue, numberValue, renderAndResolve, resolve, status, stringValuepublic static final NullData INSTANCE
public String toString()
SoyData@Deprecated public boolean toBoolean()
Null is falsy.
public boolean equals(Object other)
SoyValueequals in interface SoyValueequals in class SoyAbstractValueother - The other value to compare against.