@ParametersAreNonnullByDefault public final class EasyListImpl extends SoyAbstractList implements SoyEasyList
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Field and Description |
|---|---|
protected List<? extends SoyValueProvider> |
providerList
Backing list of providers.
|
| Constructor and Description |
|---|
EasyListImpl(SoyValueHelper valueHelper)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
| 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.
|
List<? extends SoyValueProvider> |
asJavaList()
Gets a Java list of all value providers in this SoyList.
|
List<SoyValue> |
asResolvedJavaList()
Gets a Java list all values in this SoyList.
|
void |
del(int index)
Deletes a value from this SoyList, given its index.
|
SoyValueProvider |
getProvider(int index)
Gets a provider of a value of this SoyList.
|
int |
length()
Gets the length of this SoyList.
|
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.
|
coerceToBoolean, coerceToString, equals, get, getIntegerIndex, getItem, getItemCnt, getItemKeys, getItemProvider, hasItem, renderbooleanValue, floatValue, integerValue, longValue, numberValue, renderAndResolve, resolve, status, stringValueclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasJavaList, asResolvedJavaList, get, getProvider, lengthgetItem, getItemCnt, getItemKeys, getItemProvider, hasItembooleanValue, coerceToBoolean, coerceToString, equals, floatValue, integerValue, longValue, numberValue, render, stringValuerenderAndResolve, resolve, statusprotected final List<? extends SoyValueProvider> providerList
public EasyListImpl(SoyValueHelper valueHelper)
valueHelper - The instance of SoyValueHelper to use for internal conversions.public void add(SoyValueProvider valueProvider)
SoyEasyListadd in interface SoyEasyListvalueProvider - A provider of the value to add. Note that this is often just the value
itself, since all values are also providers.public void add(@Nullable Object value)
SoyEasyListadd in interface SoyEasyListvalue - The value to add. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.public void add(int index,
SoyValueProvider valueProvider)
SoyEasyListadd in interface SoyEasyListindex - 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.public void add(int index,
@Nullable
Object value)
SoyEasyListadd in interface SoyEasyListindex - The index to add at.value - The value to add. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.public void set(int index,
SoyValueProvider valueProvider)
SoyEasyListset in interface SoyEasyListindex - 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.public void set(int index,
@Nullable
Object value)
SoyEasyListset in interface SoyEasyListindex - The index to set.value - The value to set. If it's not a SoyValueProvider (includes SoyValue), it will be
converted.public void del(int index)
SoyEasyListdel in interface SoyEasyListindex - The index to delete.public void addAllFromList(SoyList list)
SoyEasyListaddAllFromList in interface SoyEasyListlist - A list of the values to add.public void addAllFromJavaIterable(Iterable<?> javaIterable)
SoyEasyListaddAllFromJavaIterable in interface SoyEasyListjavaIterable - A Java iterable of the values to add. Each value that is not a
SoyValueProvider (includes SoyValue) will be converted.public SoyEasyList makeImmutable()
SoyEasyListmakeImmutable in interface SoyEasyListpublic final int length()
SoyList@Nonnull public final List<? extends SoyValueProvider> asJavaList()
SoyList@Nonnull public final List<SoyValue> asResolvedJavaList()
SoyListpublic final SoyValueProvider getProvider(int index)
SoyListindex - The index to get.