Package com.vaadin.flow.templatemodel
Class TemplateModelListProxy<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.vaadin.flow.templatemodel.TemplateModelListProxy<T>
-
- Type Parameters:
T- the type of items in the list
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>
@Deprecated public class TemplateModelListProxy<T> extends AbstractList<T> implements Serializable
Deprecated.This functionality is internal and bound to template model which is not supported for lit template. Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.A list implementation which uses aModelListin aStateNodeas the data source.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description TemplateModelListProxy(StateNode stateNode, ComplexModelType<T> itemType)Deprecated.Creates a new proxy for the given node and item type.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, T object)Deprecated.voidclear()Deprecated.Tget(int index)Deprecated.intindexOf(Object object)Deprecated.Tremove(int index)Deprecated.booleanremove(Object object)Deprecated.Tset(int index, T object)Deprecated.intsize()Deprecated.-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
TemplateModelListProxy
public TemplateModelListProxy(StateNode stateNode, ComplexModelType<T> itemType)
Deprecated.Creates a new proxy for the given node and item type.- Parameters:
stateNode- the state node containing the model listitemType- the type of items in the list
-
-
Method Detail
-
get
public T get(int index)
Deprecated.
-
add
public void add(int index, T object)Deprecated.
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
indexOf
public int indexOf(Object object)
Deprecated.
-
remove
public boolean remove(Object object)
Deprecated.- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
remove
public T remove(int index)
Deprecated.
-
size
public int size()
Deprecated.- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
-