@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 |
coerceToBoolean()
Coerces this value into a boolean.
|
String |
coerceToString()
Coerces this value into a string.
|
boolean |
equals(Object other)
Compares this value against another for equality in the sense of the '==' operator of Soy.
|
int |
hashCode() |
String |
toString() |
rendercreateFromExistingDatabooleanValue, floatValue, integerValue, longValue, numberValue, render, renderAndResolve, resolve, status, stringValuepublic static final NullData INSTANCE
public boolean coerceToBoolean()
Null is falsy.
public String coerceToString()
SoyValuepublic boolean equals(Object other)
SoyValueequals in interface SoyValueequals in class SoyAbstractValueother - The other value to compare against.