public interface IListBacked<T> extends List<T>
Structural
interface 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 the JsonListType
.Modifier and Type | Method and Description |
---|---|
default void |
add(int index,
T element) |
default boolean |
add(T t) |
default boolean |
addAll(Collection<? extends T> c) |
default boolean |
addAll(int index,
Collection<? extends T> c) |
default void |
clear() |
default Object |
coerce(Object value,
Class type) |
default void |
coerceListToBindingValues() |
default List<T> |
coerceListToComplexValues() |
default boolean |
contains(Object o) |
default boolean |
containsAll(Collection<?> c) |
default void |
forEach(Consumer<? super T> action) |
default T |
get(int index) |
default Class<?> |
getFinalComponentType()
Finds declared type parameter of type extending IListBacked.
|
List<Object> |
getList()
The
List object used to store raw values corresponding with List methods. |
default int |
indexOf(Object o) |
default boolean |
isEmpty() |
default Iterator<T> |
iterator() |
default int |
lastIndexOf(Object o) |
default ListIterator<T> |
listIterator() |
default ListIterator<T> |
listIterator(int index) |
default Stream<T> |
parallelStream() |
default T |
remove(int index) |
default boolean |
remove(Object o) |
default boolean |
removeAll(Collection<?> c) |
default boolean |
removeIf(Predicate<? super T> filter) |
default void |
replaceAll(UnaryOperator<T> operator) |
default boolean |
retainAll(Collection<?> c) |
default T |
set(int index,
T element) |
default int |
size() |
default void |
sort(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 Object |
toBindingsValue(Object element) |
List<Object> getList()
List
object used to store raw values corresponding with List methods.default Class<?> getFinalComponentType()
interface Hobby extends IlistBacked<HobbyItem>Returns
HobbyItem
default void coerceListToBindingValues()
default void replaceAll(UnaryOperator<T> operator)
replaceAll
in interface List<T>
default void sort(Comparator<? super T> c)
default Spliterator<T> spliterator()
spliterator
in interface Collection<T>
spliterator
in interface Iterable<T>
spliterator
in interface List<T>
default boolean removeIf(Predicate<? super T> filter)
removeIf
in interface Collection<T>
default Stream<T> stream()
stream
in interface Collection<T>
default Stream<T> parallelStream()
parallelStream
in interface Collection<T>
default int size()
default boolean isEmpty()
default boolean contains(Object o)
default Object[] toArray()
default <T1> T1[] toArray(T1[] a)
default boolean add(T t)
default boolean remove(Object o)
default boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
default boolean addAll(Collection<? extends T> c)
default boolean addAll(int index, Collection<? extends T> c)
default List<Object> toBindings(Collection<?> c)
default boolean removeAll(Collection<?> c)
default boolean retainAll(Collection<?> c)
default void clear()
default int lastIndexOf(Object o)
lastIndexOf
in interface List<T>
default ListIterator<T> listIterator()
listIterator
in interface List<T>
default ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
Copyright © 2024. All rights reserved.