*Data.forValue() directly.@Deprecated public class SoyJavaRuntimeFunctionUtils extends Object
SoyJavaRuntimeFunctions.
Important: This class may only be used in implementing plugins (e.g. functions, directives).
Feel free to static import these helpers in your function implementation classes.
| Modifier and Type | Method and Description |
|---|---|
static SoyData |
toSoyData(boolean value)
Deprecated.
Converts a boolean value to a SoyData (specifically a BooleanData).
|
static SoyData |
toSoyData(double value)
Deprecated.
Converts a double value to a SoyData (specifically a FloatData).
|
static SoyData |
toSoyData(int value)
Deprecated.
Converts an int value to a SoyData (specifically an IntegerData).
|
static SoyData |
toSoyData(String value)
Deprecated.
Converts a String value to a SoyData (specifically a StringData).
|
public static SoyData toSoyData(boolean value)
value - The boolean value to convert.public static SoyData toSoyData(int value)
value - The int value to convert.public static SoyData toSoyData(double value)
value - The double value to convert.