Package manifold.ext.rt.api
Interface IListBacked<T>
-
- All Superinterfaces:
Collection<T>,Iterable<T>,List<T>
public interface IListBacked<T> extends List<T>
AStructuralinterface with only list methods can extend this interface and provide default implementations of its methods and implement a compile-time proxy API to avoid the overhead runtime proxy generation. See theJsonListType.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidadd(int index, T element)default booleanadd(T t)default booleanaddAll(int index, Collection<? extends T> c)default booleanaddAll(Collection<? extends T> c)default voidclear()default Objectcoerce(Object value, Class type)default voidcoerceListToBindingValues()default List<T>coerceListToComplexValues()default booleancontains(Object o)default booleancontainsAll(Collection<?> c)default voidforEach(Consumer<? super T> action)default Tget(int index)default Class<?>getFinalComponentType()Finds declared type parameter of type extending IListBacked.List<Object>getList()TheListobject used to store raw values corresponding with List methods.default intindexOf(Object o)default booleanisEmpty()default Iterator<T>iterator()default intlastIndexOf(Object o)default ListIterator<T>listIterator()default ListIterator<T>listIterator(int index)default Stream<T>parallelStream()default Tremove(int index)default booleanremove(Object o)default booleanremoveAll(Collection<?> c)default booleanremoveIf(Predicate<? super T> filter)default voidreplaceAll(UnaryOperator<T> operator)default booleanretainAll(Collection<?> c)default Tset(int index, T element)default intsize()default voidsort(Comparator<? super T> c)default Spliterator<T>spliterator()default Stream<T>stream()default List<T>subList(int fromIndex, int toIndex)default Object[]toArray()default <T1> T1[]toArray(T1[] a)default List<Object>toBindings(Collection<?> c)default ObjecttoBindingsValue(Object element)-
Methods inherited from interface java.util.Collection
toArray
-
-
-
-
Method Detail
-
getList
List<Object> getList()
TheListobject used to store raw values corresponding with List methods.
-
getFinalComponentType
default Class<?> getFinalComponentType()
Finds declared type parameter of type extending IListBacked.interface Hobby extends IlistBacked<HobbyItem>
ReturnsHobbyItem
-
coerceListToBindingValues
default void coerceListToBindingValues()
-
replaceAll
default void replaceAll(UnaryOperator<T> operator)
- Specified by:
replaceAllin interfaceList<T>
-
sort
default void sort(Comparator<? super T> c)
-
spliterator
default Spliterator<T> spliterator()
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceList<T>
-
removeIf
default boolean removeIf(Predicate<? super T> filter)
- Specified by:
removeIfin interfaceCollection<T>
-
stream
default Stream<T> stream()
- Specified by:
streamin interfaceCollection<T>
-
parallelStream
default Stream<T> parallelStream()
- Specified by:
parallelStreamin interfaceCollection<T>
-
size
default int size()
-
isEmpty
default boolean isEmpty()
-
contains
default boolean contains(Object o)
-
toArray
default Object[] toArray()
-
toArray
default <T1> T1[] toArray(T1[] a)
-
add
default boolean add(T t)
-
remove
default boolean remove(Object o)
-
containsAll
default boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
default boolean addAll(Collection<? extends T> c)
-
addAll
default boolean addAll(int index, Collection<? extends T> c)
-
toBindings
default List<Object> toBindings(Collection<?> c)
-
removeAll
default boolean removeAll(Collection<?> c)
-
retainAll
default boolean retainAll(Collection<?> c)
-
clear
default void clear()
-
lastIndexOf
default int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
default ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
default ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfaceList<T>
-
-