@ParametersAreNonnullByDefault public interface SoyList extends SoyMap
A list also supports the map interface. In that usage, the item keys are the list indices in the form of IntegerData.
Important: Until this API is more stable and this note is removed, users must not define classes that implement this interface.
| Modifier and Type | Method and Description |
|---|---|
List<? extends SoyValueProvider> |
asJavaList()
Gets a Java list of all value providers in this SoyList.
|
List<? extends SoyValue> |
asResolvedJavaList()
Gets a Java list all values in this SoyList.
|
SoyValue |
get(int index)
Gets a value of this SoyList.
|
SoyValueProvider |
getProvider(int index)
Gets a provider of a value of this SoyList.
|
int |
length()
Gets the length of this SoyList.
|
getItem, getItemCnt, getItemKeys, getItemProvider, hasItembooleanValue, coerceToBoolean, coerceToString, equals, floatValue, integerValue, longValue, numberValue, render, stringValuerenderAndResolve, resolve, statusint length()
@Nonnull List<? extends SoyValueProvider> asJavaList()
@Nonnull List<? extends SoyValue> asResolvedJavaList()
SoyValue get(int index)
index - The index to get.SoyValueProvider getProvider(int index)
index - The index to get.