public final class BasicFunctionsRuntime extends Object
| Constructor and Description |
|---|
BasicFunctionsRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static SoyDict |
augmentMap(SoyDict first,
SoyDict second)
Combine the two maps.
|
static long |
ceil(SoyValue arg)
Returns the smallest (closest to negative infinity) integer value that is greater than or equal
to the argument.
|
static long |
floor(SoyValue arg)
Returns the largest (closest to positive infinity) integer value that is less than or equal to
the argument.
|
static List<SoyValue> |
keys(SoyLegacyObjectMap map)
Returns a list of all the keys in the given map.
|
static SoyMapImpl |
legacyObjectMapToMap(SoyDict map) |
static List<SoyValue> |
mapKeys(SoyMap map)
Returns a list of all the keys in the given map.
|
static SoyDict |
mapToLegacyObjectMap(SoyMapImpl map) |
static NumberData |
max(SoyValue arg0,
SoyValue arg1)
Returns the numeric maximum of the two arguments.
|
static NumberData |
min(SoyValue arg0,
SoyValue arg1)
Returns the numeric minimum of the two arguments.
|
static FloatData |
parseFloat(String str) |
static IntegerData |
parseInt(String str) |
static long |
randomInt(long longValue)
Returns a random integer between
0 and the provided argument. |
static List<IntegerData> |
range(int end) |
static List<IntegerData> |
range(int start,
int end) |
static List<IntegerData> |
range(int start,
int end,
int step) |
static long |
round(SoyValue value)
Rounds the given value to the closest integer.
|
static NumberData |
round(SoyValue value,
int numDigitsAfterPoint)
Rounds the given value to the closest decimal point left (negative numbers) or right (positive
numbers) of the decimal point
|
public static long ceil(SoyValue arg)
public static long floor(SoyValue arg)
public static List<SoyValue> keys(SoyLegacyObjectMap map)
public static List<SoyValue> mapKeys(SoyMap map)
public static SoyMapImpl legacyObjectMapToMap(SoyDict map)
public static SoyDict mapToLegacyObjectMap(SoyMapImpl map)
public static NumberData max(SoyValue arg0, SoyValue arg1)
public static NumberData min(SoyValue arg0, SoyValue arg1)
public static IntegerData parseInt(String str)
public static long randomInt(long longValue)
0 and the provided argument.public static NumberData round(SoyValue value, int numDigitsAfterPoint)
public static long round(SoyValue value)
public static List<IntegerData> range(int end)
public static List<IntegerData> range(int start, int end)
public static List<IntegerData> range(int start, int end, int step)