@ParametersAreNonnullByDefault public interface SoyEasyList extends SoyList, SoyMap
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 |
|---|---|
void |
add(int index,
Object value)
Adds a value to this SoyList at a given index.
|
void |
add(int index,
SoyValueProvider valueProvider)
Adds a value to this SoyList at a given index.
|
void |
add(Object value)
Adds a value to the end of this SoyList.
|
void |
add(SoyValueProvider valueProvider)
Adds a value to the end of this SoyList.
|
void |
addAllFromJavaIterable(Iterable<?> javaIterable)
Adds values to the end of this SoyList from a Java iterable.
|
void |
addAllFromList(SoyList list)
Adds values to the end of this SoyList from another list.
|
void |
del(int index)
Deletes a value from this SoyList, given its index.
|
SoyEasyList |
makeImmutable()
Makes this list immutable.
|
void |
set(int index,
Object value)
Sets a value in this SoyList.
|
void |
set(int index,
SoyValueProvider valueProvider)
Sets a value in this SoyList.
|
asJavaList, asResolvedJavaList, get, getProvider, lengthgetItem, getItemCnt, getItemKeys, getItemProvider, hasItembooleanValue, coerceToBoolean, coerceToString, equals, floatValue, integerValue, longValue, numberValue, render, stringValuerenderAndResolve, resolve, statusvoid add(SoyValueProvider valueProvider)
valueProvider - A provider of the value to add. Note that this is often just the value
itself, since all values are also providers.void add(@Nullable Object value)
value - The value to add. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.void add(int index,
SoyValueProvider valueProvider)
index - The index to add at.valueProvider - A provider of the value to add. Note that this is often just the value
itself, since all values are also providers.void add(int index,
@Nullable
Object value)
index - The index to add at.value - The value to add. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.void set(int index,
SoyValueProvider valueProvider)
index - The index to set.valueProvider - A provider of the value to set. Note that this is often just the value
itself, since all values are also providers.void set(int index,
@Nullable
Object value)
index - The index to set.value - The value to set. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.void del(int index)
index - The index to delete.void addAllFromList(SoyList list)
list - A list of the values to add.void addAllFromJavaIterable(Iterable<?> javaIterable)
javaIterable - A Java iterable of the values to add. Each value that is not a
SoyValueProvider (includes SoyValue) will be converted.SoyEasyList makeImmutable()